cco.member.browser: add checkAuth() method for use by template

This commit is contained in:
Helmut Merz 2025-11-02 10:58:17 +01:00
parent 1584568e0a
commit d2bff4c5cb

View file

@ -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':