Compare commits

..

2 commits

2 changed files with 6 additions and 1 deletions

View file

@ -17,6 +17,7 @@ class MailToAction(TargetAction):
targetWindow = 'blank'
bodyAttribute = 'description'
subjectAttribute = 'title'
mailToDelimiter = ', '
@Lazy
def url(self):
@ -32,7 +33,7 @@ class MailToAction(TargetAction):
for receiver in getattr(target, self.receivers):
if receiver.email:
if prefix:
mailto += ', '
mailto += self.mailToDelimiter
mailto += receiver.email
prefix = True
subject = getattr(target, self.subjectAttribute, '')

View file

@ -66,6 +66,10 @@ class LoginBase:
return self.authOidc()
return super(LoginBase, self).__call__()
def checkAuth(self):
if self.authMethod == 'oidc':
return self.authOidc()
@Lazy
def authMethod(self):
if getConfigAuthMethod() == 'cookie':