Commit 94ef40ee authored by Andreas Jung's avatar Andreas Jung

fixed bug in _doAddUser() where encrypted password become encrypted another time

parent cb3ed790
...@@ -1044,7 +1044,8 @@ class UserFolder(BasicUserFolder): ...@@ -1044,7 +1044,8 @@ class UserFolder(BasicUserFolder):
def _doAddUser(self, name, password, roles, domains, **kw): def _doAddUser(self, name, password, roles, domains, **kw):
"""Create a new user""" """Create a new user"""
if password is not None and self.encrypt_passwords: if password is not None and self.encrypt_passwords \
and not self._isPasswordEncrypted(password):
password = self._encryptPassword(password) password = self._encryptPassword(password)
self.data[name]=User(name,password,roles,domains) self.data[name]=User(name,password,roles,domains)
......
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