commit 100394e8e6104deba5d90e50aca89bd7e04ca507
parent 68902fc0c45e7cf05e07f13a41b40a2c1d4a0563
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sat, 3 Dec 2022 17:36:38 -0500
spacing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -1122,6 +1122,7 @@ func ForgotPasswordHandler(c echo.Context) error {
} else if formName == "step2" {
// Receive and validate GPG code/signature
data.Step = 2
+
partialRecoveryCookie, err := c.Cookie("partial-recovery-token")
if err != nil {
return c.Redirect(http.StatusFound, "/")
@@ -1130,7 +1131,6 @@ func ForgotPasswordHandler(c echo.Context) error {
if !found {
return c.Redirect(http.StatusFound, "/")
}
-
token, found := pgpTokenCache.Get(userID)
if !found {
return c.Redirect(http.StatusFound, "/")