authMethod fix: correctly check / use config auth method

This commit is contained in:
Helmut Merz 2026-04-28 16:14:44 +02:00
parent 0c843bf889
commit b06b38f83c

View file

@ -72,9 +72,10 @@ class LoginBase:
@Lazy @Lazy
def authMethod(self): def authMethod(self):
if getConfigAuthMethod() == 'cookie': meth = getConfigAuthMethod()
if meth == 'cookie':
return getAuthMethodCookieValue(self.request) return getAuthMethodCookieValue(self.request)
return 'legacy' return meth
@Lazy @Lazy
def oidc_allowed(self): def oidc_allowed(self):