Commit d078ccbb authored by Nicolas Delaby's avatar Nicolas Delaby

revert 24611 which bypass setPassword in edit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24627 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3b26e733
...@@ -192,15 +192,9 @@ class Person(XMLObject): ...@@ -192,15 +192,9 @@ class Person(XMLObject):
if value is not None: if value is not None:
if not _checkPermission(Permissions.SetOwnPassword, self): if not _checkPermission(Permissions.SetOwnPassword, self):
raise AccessControl_Unauthorized('setPassword') raise AccessControl_Unauthorized('setPassword')
self._setPassword(value) self._setPassword(pw_encrypt(value))
self.reindexObject() self.reindexObject()
def _setPassword(self, value):
"""
Encrypt value
"""
self._baseSetPassword(pw_encrypt(value))
# Time management # Time management
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getAvailableTime') 'getAvailableTime')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment