diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-10 18:33:51 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-08-03 13:43:19 +0300 |
commit | afeee8beaa8c07593d2c4c5256c869e44172f436 (patch) | |
tree | 25820581719c417988e6ccf1954d2e863d9b3eb6 /appinfo | |
parent | ba2e04f7b814937c9b20b28ddad268bc0fd233e3 (diff) |
show all configured IdP's on the login screen
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index d1ef6712..1ec876a1 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -119,9 +119,11 @@ if($useSamlForDesktopClients === '1') { } } -$multipleUserBackEnds = $config->getAppValue('user_saml', 'general-allow_multiple_user_back_ends', '0'); +$multipleUserBackEnds = $samlSettings->allowMultipleUserBackEnds(); +$configuredIdps = $samlSettings->getListOfIdps(); +$showLoginOptions = $multipleUserBackEnds || count($configuredIdps) > 1; -if ($redirectSituation === true && $multipleUserBackEnds === '1') { +if ($redirectSituation === true && $showLoginOptions) { $params = $request->getParams(); $redirectUrl = ''; if(isset($params['redirect_url'])) { |