Bugfix: password reset

This commit is contained in:
Vivek Santayana 2022-08-11 12:44:42 +01:00
parent d4db8692e7
commit a613b0006b

View File

@ -117,7 +117,7 @@ def _reset():
user.clear_reset_tokens() user.clear_reset_tokens()
if request.args.get('verification') == verification_token: if request.args.get('verification') == verification_token:
form = UpdatePassword() form = UpdatePassword()
return render_template('/auth/update_password.html', form=form, user=user.id) return render_template('/auth/update-password.html', form=form, user=user.id)
flash('The verification of your password reset request failed and the token has been invalidated. Please make a new reset password request.', 'error') flash('The verification of your password reset request failed and the token has been invalidated. Please make a new reset password request.', 'error')
return render_template('/admin/auth/reset.html', form=form) return render_template('/admin/auth/reset.html', form=form)