mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
When reseting password, if an email has not yet been provided, make text box empty and not contain 'None'
This commit is contained in:
@@ -571,6 +571,8 @@ class User( BaseController ):
|
||||
return trans.show_ok_message( "Password has been reset and emailed to: %s. <a href='%s'>Click here</a> to return to the login form." % ( email, web.url_for( action='login' ) ) )
|
||||
elif email != None:
|
||||
error = "The specified user does not exist"
|
||||
elif email is None:
|
||||
email = ""
|
||||
return trans.show_form(
|
||||
web.FormBuilder( web.url_for(), "Reset Password", submit_text="Submit" )
|
||||
.add_text( "email", "Email", value=email, error=error ) )
|
||||
|
||||
Reference in New Issue
Block a user