mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
New-password endpoints are implemented.
There should be a better way to validate the token.
This commit is contained in:
@@ -10,7 +10,8 @@ from app.main.views import send_change_password_email
|
||||
def forgot_password():
|
||||
form = ForgotPasswordForm(users_dao.find_all_email_address())
|
||||
if form.validate_on_submit():
|
||||
send_change_password_email(form.email_address.data)
|
||||
user = users_dao.get_user_by_email(form.email_address.data)
|
||||
send_change_password_email(form.email_address.data, user.id)
|
||||
return render_template('views/password-reset-sent.html')
|
||||
else:
|
||||
return render_template('views/forgot-password.html', form=form)
|
||||
|
||||
Reference in New Issue
Block a user