Handle duplicate email on signup correctly (fixes ticket #24)
This commit is contained in:
parent
cfd455e4cc
commit
22e0bed0bf
1 changed files with 2 additions and 2 deletions
|
@ -437,8 +437,8 @@ forward to working with you!
|
|||
person.password = newpass['hash']
|
||||
turbogears.flash(_('Your password has been emailed to you. Please log in with it and change your password'))
|
||||
turbogears.redirect('/user/changepass')
|
||||
except KeyError:
|
||||
turbogears.flash(_("The username '%s' already Exists. Please choose a different username.") % username)
|
||||
except IntegrityError:
|
||||
turbogears.flash(_("An account has already been registered with that email address."))
|
||||
turbogears.redirect('/user/new')
|
||||
return dict()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue