@intercept_errors(UserAPIInternalError, ignore_errors=[UserAPIRequestError])
def request_password_change(email, orig_host, is_secure):
 form = PasswordResetFormNoActive({'email': email})
 if form.is_valid():
  form.save(from_email=configuration_helpers.get_value('email_from_address', settings.DEFAULT_FROM_EMAIL), domain_override=orig_host, use_https=is_secure)
 else:
  raise UserNotFound

@ intercept_errors ( UserAPIInternalError , ignore_errors = [ UserAPIRequestError ] ) def request_password_change ( email , orig_host , is_secure ) : form = PasswordResetFormNoActive ( { 'email' : email } ) if form . is_valid ( ) : form . save ( from_email = configuration_helpers . get_value ( 'email_from_address' , settings . DEFAULT_FROM_EMAIL ) , domain_override = orig_host , use_https = is_secure ) else : raise UserNotFound
email a single-use link for performing a password reset .