From 348b6010e8eeeb4c80d9c1c4b5a1e737374dd229 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Thu, 26 Feb 2026 15:09:01 +0100 Subject: [PATCH] fix typo preventing template condition to work --- internal/auth/auth.go | 2 +- web/templates/login.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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}}