mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-07 19:43:41 +02:00
Merge pull request #500 from nextcloud/allow_custom_direct_login_displayname
Allow customer directlogin text
This commit is contained in:
commit
0c43de541b
|
@ -492,9 +492,16 @@ class SAMLController extends Controller {
|
||||||
$attributes = ['loginUrls' => []];
|
$attributes = ['loginUrls' => []];
|
||||||
|
|
||||||
if ($this->SAMLSettings->allowMultipleUserBackEnds()) {
|
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'] = [
|
$attributes['loginUrls']['directLogin'] = [
|
||||||
'url' => $this->getDirectLoginUrl($redirectUrl),
|
'url' => $this->getDirectLoginUrl($redirectUrl),
|
||||||
'display-name' => $this->l->t('Direct log in')
|
'display-name' => $displayName,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue