[Zope-Checkins] CVS: Zope/lib/python/AccessControl - User.py:1.170.6.3
Lennart Regebro
lennart@torped.se
Mon, 16 Dec 2002 11:50:07 -0500
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv6344/lib/python/AccessControl
Modified Files:
Tag: Zope-2_6-branch
User.py
Log Message:
Collector #256: Added a check in _doChangeUser to make sure passwords isn't encrypted twice.
=== Zope/lib/python/AccessControl/User.py 1.170.6.2 => 1.170.6.3 ===
--- Zope/lib/python/AccessControl/User.py:1.170.6.2 Wed Oct 16 17:34:35 2002
+++ Zope/lib/python/AccessControl/User.py Mon Dec 16 11:50:06 2002
@@ -1034,7 +1034,7 @@
def _doChangeUser(self, name, password, roles, domains, **kw):
user=self.data[name]
if password is not None:
- if self.encrypt_passwords:
+ if self.encrypt_passwords and not self._isPasswordEncrypted(pw):
password = self._encryptPassword(password)
user.__=password
user.roles=roles