diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-01-12 16:44:05 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-01-12 16:44:05 +0300 |
commit | 7f7def4b7f21fabf34b7921bbdc344cde9a9d88d (patch) | |
tree | 2ca350d91e427bf8642003a0ef65df5f7d34674c /lib/Controller | |
parent | 425ef9c6c6414d3fa0a3c25b1e2a994747995969 (diff) |
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>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/SAMLController.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php index 16ba47f3..161e5ae3 100644 --- a/lib/Controller/SAMLController.php +++ b/lib/Controller/SAMLController.php @@ -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, ]; } |