[Zope-Checkins] SVN: Zope/trunk/lib/python/AccessControl/User.py
fixed bug in _doAddUser() where encrypted password become
encrypted another time
Andreas Jung
andreas at andreas-jung.com
Tue Aug 16 15:15:03 EDT 2005
Log message for revision 37965:
fixed bug in _doAddUser() where encrypted password become encrypted another time
Changed:
U Zope/trunk/lib/python/AccessControl/User.py
-=-
Modified: Zope/trunk/lib/python/AccessControl/User.py
===================================================================
--- Zope/trunk/lib/python/AccessControl/User.py 2005-08-16 15:41:52 UTC (rev 37964)
+++ Zope/trunk/lib/python/AccessControl/User.py 2005-08-16 19:15:02 UTC (rev 37965)
@@ -1044,7 +1044,8 @@
def _doAddUser(self, name, password, roles, domains, **kw):
"""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)
self.data[name]=User(name,password,roles,domains)
More information about the Zope-Checkins
mailing list