X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/125a6289be7a631a256f948bda5415451aca6d98..7efc8be328ba4a6d4e688a50d23eb8f1463c00b9:/skins/control/reset_password_control.py?ds=sidebyside diff --git a/skins/control/reset_password_control.py b/skins/control/reset_password_control.py index f903e24..8cdcdb1 100644 --- a/skins/control/reset_password_control.py +++ b/skins/control/reset_password_control.py @@ -2,8 +2,8 @@ from Products.CMFCore.utils import getUtilityByInterfaceName rtool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IRegistrationTool') -msg = rtool.resetPassword(uuid, password, confirm) +userid, msg = rtool.resetPassword(uuid, password, confirm) if msg : - return context.setStatus(False, msg) -else : - return True \ No newline at end of file + context.setStatus(False, msg) + +return userid \ No newline at end of file