Skip to content

Commit 14c06d3

Browse files
authored
Adding control checking the orgs in authsources (#61)
1 parent 8878fcf commit 14c06d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Auth/Source/LdapMulti.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function login(string $username, #[\SensitiveParameter]string $passwor
119119

120120
$authsource = $this->mapping[$organization]['authsource'];
121121

122-
if (array_key_exists($organization, $this->ldapOrgs)) {
122+
if (!array_key_exists($organization, $this->ldapOrgs)) {
123123
// The organization is unknown to us.
124124
throw new Error\Error('WRONGUSERPASS');
125125
}

0 commit comments

Comments
 (0)