Add a POST flow to password recovery (#871)

This commit is contained in:
Calvin Montgomery 2021-08-19 20:55:02 -07:00
parent d563a85092
commit edb5f94b7c
3 changed files with 45 additions and 3 deletions

View file

@ -7,6 +7,9 @@ block content
.alert.alert-success.center.messagebox
strong Your password has been changed
p Your account has been assigned the temporary password <code>#{recoverPw}</code>. You may now use this password to log in and choose a new password by visiting the <a href="/account/edit">change password/email</a> page.
else if confirm
form(role="form", method="POST")
button.btn.btn-primary.btn-block(type="submit") Click here to reset password
else
.alert.alert-danger.center.messagebox
strong Password recovery failed