From 77afaab66d0b4e026789616b672b5abd2d4756c5 Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Wed, 4 Nov 2009 09:32:09 -0500 Subject: [PATCH] When reseting password, if an email has not yet been provided, make text box empty and not contain 'None' --- lib/galaxy/web/controllers/user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/web/controllers/user.py b/lib/galaxy/web/controllers/user.py index 3112f9eb8fc..92a2935aeed 100644 --- a/lib/galaxy/web/controllers/user.py +++ b/lib/galaxy/web/controllers/user.py @@ -571,6 +571,8 @@ class User( BaseController ): return trans.show_ok_message( "Password has been reset and emailed to: %s. Click here 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 ) )