Fix login page disabled depending on locale (#120)

This commit is contained in:
Thomas Miceli
2023-09-28 20:09:08 +02:00
committed by GitHub
parent bae18ecb0a
commit 4eedfdcf6f
2 changed files with 4 additions and 2 deletions

View File

@ -31,6 +31,7 @@ func register(ctx echo.Context) error {
setData(ctx, "title", tr(ctx, "auth.new-account"))
setData(ctx, "htmlTitle", "New account")
setData(ctx, "disableForm", getData(ctx, "DisableLoginForm"))
setData(ctx, "isLoginPage", false)
return html(ctx, "auth_form.html")
}
@ -91,6 +92,7 @@ func login(ctx echo.Context) error {
setData(ctx, "title", tr(ctx, "auth.login"))
setData(ctx, "htmlTitle", "Login")
setData(ctx, "disableForm", getData(ctx, "DisableLoginForm"))
setData(ctx, "isLoginPage", true)
return html(ctx, "auth_form.html")
}