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'
|
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, '')
|
||||||
|
|
|
||||||
|
|
@ -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