Skip to content

Commit

Permalink
Adding control checking the orgs in authsources (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adolf0100 authored and tvdijen committed Sep 27, 2024
1 parent 6157b26 commit a2512a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/Source/LdapMulti.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function login(string $username, #[\SensitiveParameter]string $passwor

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

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

0 comments on commit a2512a5

Please sign in to comment.