projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
125a628
)
On ne sait jamais ce que le hasard nous réserve :-D.
author
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 31 Jul 2013 09:17:49 +0000
(11:17 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 31 Jul 2013 09:17:49 +0000
(11:17 +0200)
RegistrationTool.py
patch
|
blob
|
history
diff --git
a/RegistrationTool.py
b/RegistrationTool.py
index
b46a13b
..
f34b4a5
100644
(file)
--- a/
RegistrationTool.py
+++ b/
RegistrationTool.py
@@
-201,6
+201,8
@@
class RegistrationTool(BaseRegistrationTool) :
member = mtool.getMemberById(userid)
if member :
uuid = str(uuid4())
+ while self._passwordResetRequests.has_key(uuid) :
+ uuid = str(uuid4())
self._passwordResetRequests[uuid] = (userid, DateTime() + 1)
utool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IURLTool')
ptool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IPropertiesTool')