- uuid = rtool.requestPasswordReset(userid)
- context.setStatus(True, _('request for resetting password sent'))
- return 'yeah !'
+ msg = rtool.requestPasswordReset(userid)
+ if not msg :
+ context.setStatus(True, _('Request for resetting password sent to your contact email.'))
+ context.setRedirect(utool.getPortalObject(), 'object/view', ajax=ajax)
+ return
+
+ context.setStatus(False, msg)