Merge pull request #177 from alphagov/easier-registration

Make registration and forgot password pages better
This commit is contained in:
NIcholas Staples
2016-02-17 11:05:17 +00:00
6 changed files with 48 additions and 12 deletions

View File

@@ -19,6 +19,7 @@ def forgot_password():
users_dao.request_password_reset(user)
send_change_password_email(form.email_address.data)
return render_template('views/password-reset-sent.html')
flash('There was an error processing your request')
else:
return render_template('views/password-reset-sent.html')
return render_template('views/forgot-password.html', form=form)