Compare commits
2 commits
7a3f956670
...
d2bff4c5cb
| Author | SHA1 | Date | |
|---|---|---|---|
| d2bff4c5cb | |||
|
|
1584568e0a |
2 changed files with 6 additions and 1 deletions
|
|
@ -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, '')
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue