##// END OF EJS Templates
User: use new escaped hybrid properties for usage in code....
ergo -
r1814:a1111aae default
parent child Browse files
Show More
@@ -572,6 +572,16 b' class User(Base, BaseModel):'
572 self._email = val.lower() if val else None
572 self._email = val.lower() if val else None
573
573
574 @hybrid_property
574 @hybrid_property
575 def first_name(self):
576 from rhodecode.lib import helpers as h
577 return h.escape(self.name)
578
579 @hybrid_property
580 def last_name(self):
581 from rhodecode.lib import helpers as h
582 return h.escape(self.lastname)
583
584 @hybrid_property
575 def api_key(self):
585 def api_key(self):
576 """
586 """
577 Fetch if exist an auth-token with role ALL connected to this user
587 Fetch if exist an auth-token with role ALL connected to this user
General Comments 0
You need to be logged in to leave comments. Login now