Commit 611e5817 authored by Lennart Regebro's avatar Lennart Regebro

Merge with HEAD: Collector #256: Added a check in _doChangeUser to make sure...

Merge with HEAD: Collector #256: Added a check in _doChangeUser to make sure passwords isn't encrypted twice.
parent dce98531
......@@ -13,6 +13,9 @@ Zope Changes
modified in versions without this fix will have been corrupted in
the zodb.
- Collector #256: Added a check in _doChangeUser to make sure
passwords isn't encrypted twice.
Zope 2.6.1 beta 1
......
......@@ -12,7 +12,7 @@
##############################################################################
"""Access control package"""
__version__='$Revision: 1.172 $'[11:-2]
__version__='$Revision: 1.173 $'[11:-2]
import Globals, socket, SpecialUsers,re
import os
......@@ -1034,7 +1034,7 @@ class UserFolder(BasicUserFolder):
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
......
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