Compare commits

..

2 commits

2 changed files with 6 additions and 1 deletions

View file

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

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