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']
|
person.password = newpass['hash']
|
||||||
turbogears.flash(_('Your password has been emailed to you. Please log in with it and change your password'))
|
turbogears.flash(_('Your password has been emailed to you. Please log in with it and change your password'))
|
||||||
turbogears.redirect('/user/changepass')
|
turbogears.redirect('/user/changepass')
|
||||||
except KeyError:
|
except IntegrityError:
|
||||||
turbogears.flash(_("The username '%s' already Exists. Please choose a different username.") % username)
|
turbogears.flash(_("An account has already been registered with that email address."))
|
||||||
turbogears.redirect('/user/new')
|
turbogears.redirect('/user/new')
|
||||||
return dict()
|
return dict()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue