commit 3affa208058a7e0745a1bc7e9e7d1ad927cf2a88
parent 381cb07c86f7ee01fef7269abe723ead7170cfdc
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 26 May 2023 05:17:16 -0700
fix typo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -391,7 +391,7 @@ func loginHandler(c echo.Context) error {
token := c.Request().PostFormValue("token")
return SessionsTwoFactorRecoveryHandler(c, token)
}
- return c.Redirect(http.StatusOK, "/")
+ return c.Redirect(http.StatusFound, "/")
}
func completeLogin(c echo.Context, user database.User) error {