From 3f032bd10705f163d90cb7b9dfedc64c91ce727c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Wed, 31 Jul 2013 11:17:49 +0200 Subject: [PATCH] =?utf8?q?On=20ne=20sait=20jamais=20ce=20que=20le=20hasard?= =?utf8?q?=20nous=20r=C3=A9serve=20:-D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- RegistrationTool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RegistrationTool.py b/RegistrationTool.py index b46a13b..f34b4a5 100644 --- 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') -- 2.20.1