Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-08-15 13:52:17 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2018-08-15 13:52:17 +0300
commit630765f9b4a56235f87da8ad3bf1ec899db84d64 (patch)
tree17bec3d2c1e09848d41182c408c63ccac73a0257 /lib/SAMLSettings.php
parent183c590a72dd2fe3ad4e0f04685818559963bdc2 (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/SAMLSettings.php')
-rw-r--r--lib/SAMLSettings.php3
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');
}
/**