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>
This commit is contained in:
Björn Schiessle 2018-08-15 12:52:17 +02:00
parent 183c590a72
commit 630765f9b4
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 2 additions and 1 deletions

View File

@ -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');
}
/**