mail_password.py 402 Bytes
Newer Older
Jean-Paul Smets's avatar
Jean-Paul Smets committed
1 2 3 4 5 6 7 8 9 10 11 12 13
REQUEST=context.REQUEST
try:
  return context.portal_registration.mailPassword(REQUEST['userid'], REQUEST)
except 'NotFound', error:
   message = error
except 'ValueError', error:
   message = error

redirect_url = '%s/mail_password_form?portal_status_message=%s' % ( context.absolute_url()
                            ,  message
                            )

REQUEST.RESPONSE.redirect( redirect_url )