From 944cac731d87e29e464498a33f6d08c2823ae183 Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 22 Aug 2022 22:00:51 -0700 Subject: [PATCH] Bugfix on forgot password screen --- pkg/controller/account/reset_password.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/controller/account/reset_password.go b/pkg/controller/account/reset_password.go index eeab427..0bed3b2 100644 --- a/pkg/controller/account/reset_password.go +++ b/pkg/controller/account/reset_password.go @@ -147,6 +147,11 @@ func ForgotPassword() http.HandlerFunc { }); err != nil { 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{}{