mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-08 03:53:41 +02:00
Allow customer directlogin text
Some people seem to want to have a custom direct login text. This allows them to set it. For now only via occ. But maybe some day we also add a GUI component to it. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
425ef9c6c6
commit
7f7def4b7f
|
@ -492,9 +492,16 @@ class SAMLController extends Controller {
|
|||
$attributes = ['loginUrls' => []];
|
||||
|
||||
if ($this->SAMLSettings->allowMultipleUserBackEnds()) {
|
||||
$displayName = $this->l->t('Direct log in');
|
||||
|
||||
$customDisplayName = $this->config->getAppValue('user_saml', 'directLoginName', '');
|
||||
if ($customDisplayName !== '') {
|
||||
$displayName = $customDisplayName;
|
||||
}
|
||||
|
||||
$attributes['loginUrls']['directLogin'] = [
|
||||
'url' => $this->getDirectLoginUrl($redirectUrl),
|
||||
'display-name' => $this->l->t('Direct log in')
|
||||
'display-name' => $displayName,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue