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