{{ template "index.layout.html" . }} {{ define "main" }}

{{ LocaText "page.login.title" }}

{{ if and .Config .Config.LoginInfo }}

{{ LocaFrontendMarkdown .Config.LoginInfo }}

{{ end }}
{{ if .Error }}

{{ .Error }}

{{ end }} {{ $loginField := dict "Request" true "Require" true "Name" "login" "Value" .LoginPrefill }} {{ $passwordField := dict "Request" true "Require" true "Name" "password" }} {{ template "formfield" dict "page" "login" "Field" $loginField "type" "text" "autocomplete" "username" "inputmode" "email" }} {{ template "formfield" dict "page" "login" "Field" $passwordField "type" "password" "autocomplete" "current-password" }}
{{ if .SAML }} {{ LocaFrontend .SAML.LoginLink }} {{ end }}
{{ LocaText "page.login.button.forgot" }} {{ if and .Config .Config.LoginAllowGuest }} {{ LocaText "page.button.gotohome" }} {{ end }}
{{ end }}