diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-08-15 13:52:17 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-08-15 13:52:17 +0300 |
commit | 630765f9b4a56235f87da8ad3bf1ec899db84d64 (patch) | |
tree | 17bec3d2c1e09848d41182c408c63ccac73a0257 /lib | |
parent | 183c590a72dd2fe3ad4e0f04685818559963bdc2 (diff) |
make sure that we don't show the "select user back-end login screen if authentication over environment variables has been chosen
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SAMLSettings.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/SAMLSettings.php b/lib/SAMLSettings.php index 3e287eab..be0f9ffc 100644 --- a/lib/SAMLSettings.php +++ b/lib/SAMLSettings.php @@ -80,8 +80,9 @@ class SAMLSettings { * @return bool */ public function allowMultipleUserBackEnds() { + $type = $this->config->getAppValue('user_saml', 'type'); $setting = $this->config->getAppValue('user_saml', 'general-allow_multiple_user_back_ends', '0'); - return $setting === '1'; + return ($setting === '1' && $type === 'saml'); } /** |