commit 642ea22a429925c79dbaa0a07c873e6c2ffd9698
parent b03db25a2df215329a36f21a7b30bd4f71cc0247
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 15 Dec 2023 02:03:17 -0500
fix
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/web/handlers/login.go b/pkg/web/handlers/login.go
@@ -328,6 +328,7 @@ func SessionsTwoFactorRecoveryHandler(c echo.Context, token string) error {
func loginFormHandler(c echo.Context) error {
db := c.Get("database").(*database.DkfDB)
var data loginData
+ data.Redirect = c.QueryParam("redirect")
data.Autofocus = 0
data.HomeUsersList = config.HomeUsersList.Load()
@@ -405,7 +406,6 @@ func loginFormHandler(c echo.Context) error {
}
if c.Request().Method == http.MethodGet {
- data.Redirect = c.QueryParam("redirect")
data.SessionDurationSec = 604800
return c.Render(http.StatusOK, "standalone.login", data)
}