cco.member.browser: add checkAuth() method for use by template
This commit is contained in:
parent
1584568e0a
commit
d2bff4c5cb
1 changed files with 4 additions and 0 deletions
|
|
@ -66,6 +66,10 @@ class LoginBase:
|
||||||
return self.authOidc()
|
return self.authOidc()
|
||||||
return super(LoginBase, self).__call__()
|
return super(LoginBase, self).__call__()
|
||||||
|
|
||||||
|
def checkAuth(self):
|
||||||
|
if self.authMethod == 'oidc':
|
||||||
|
return self.authOidc()
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
def authMethod(self):
|
def authMethod(self):
|
||||||
if getConfigAuthMethod() == 'cookie':
|
if getConfigAuthMethod() == 'cookie':
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue