authMethod fix: correctly check / use config auth method
This commit is contained in:
parent
0c843bf889
commit
b06b38f83c
1 changed files with 3 additions and 2 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue