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)
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to