diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 9b1e2121..69f4f078 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -263,7 +263,7 @@ func GetAuthInstance() *Authentication { } // handleUserSync syncs or updates a user in the database based on configuration. -// This is used for both JWT and OIDC authentication when syncUserOnLogin or updateUserOnLogin is enabled. +// This is used for LDAP, JWT and OIDC authentications when syncUserOnLogin or updateUserOnLogin is enabled. func handleUserSync(user *schema.User, syncUserOnLogin, updateUserOnLogin bool) { r := repository.GetUserRepository() dbUser, err := r.GetUser(user.Username) diff --git a/web/templates/login.tmpl b/web/templates/login.tmpl index cd139261..4c4d9be8 100644 --- a/web/templates/login.tmpl +++ b/web/templates/login.tmpl @@ -38,8 +38,8 @@ - {{- if .Infos.hasOpenIDConnect}} - OpenID Connect Login + {{if .Infos.hasOpenIDConnect}} + OpenID Connect Login {{end}}