Bugfix on forgot password screen

This commit is contained in:
Noah 2022-08-22 22:00:51 -07:00
parent 5e5a7bc6c1
commit 944cac731d

View File

@ -147,6 +147,11 @@ func ForgotPassword() http.HandlerFunc {
}); err != nil { }); err != nil {
session.FlashError(w, r, "Error sending an email: %s", err) session.FlashError(w, r, "Error sending an email: %s", err)
} }
// Success message and redirect away.
session.Flash(w, r, vagueSuccessMessage)
templates.Redirect(w, r.URL.Path)
return
} }
var vars = map[string]interface{}{ var vars = map[string]interface{}{