Move redirect to else: section
This commit is contained in:
parent
d745482ec1
commit
65a2db4696
1 changed files with 3 additions and 1 deletions
|
@ -280,8 +280,10 @@ class User(controllers.Controller):
|
|||
p.__setattr__('userPassword', newpass['hash'])
|
||||
turbogears.flash(_('Your new password has been emailed to you.'))
|
||||
# This is causing an exception which causes the password could not be reset error.
|
||||
# turbogears.redirect('/login')
|
||||
#turbogears.redirect('/login')
|
||||
except:
|
||||
turbogears.flash(_('Your password could not be reset.'))
|
||||
else:
|
||||
turbogears.redirect('/login')
|
||||
return dict()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue