Skip to content

Commit

Permalink
fix internal server error being shown instead of flash message
Browse files Browse the repository at this point in the history
  • Loading branch information
anotheredward committed Feb 5, 2019
1 parent 5c5e0d0 commit d94dcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/views/user.py
Expand Up @@ -559,7 +559,7 @@ def post(self):
h.flash_error(_(u'Error sending the email. Try again later '
'or contact an administrator for help'))
log.exception(e)
return
return h.redirect_to(u'/')

# always tell the user it succeeded, because otherwise we reveal
# which accounts exist or not
Expand Down

0 comments on commit d94dcec

Please sign in to comment.