mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-23 00:43:48 +01:00
LSauthMethod: fix PHP warning
This commit is contained in:
parent
c81e2d0ee3
commit
6d95f9bfd5
1 changed files with 4 additions and 1 deletions
|
@ -67,12 +67,15 @@ class LSauthMethod extends LSlog_staticLoggerClass {
|
|||
if (!$authobjects || !is_array($authobjects)) {
|
||||
LSerror :: addErrorCode('LSauth_01');
|
||||
self :: log_debug("No user found for provided username '".$this -> authData['username']."'");
|
||||
return false;
|
||||
}
|
||||
elseif (count($authobjects) > 1) {
|
||||
|
||||
if (count($authobjects) > 1) {
|
||||
self :: log_debug('Multiple users match with provided username: '.implode(', ', array_keys($authobjects)));
|
||||
LSerror :: addErrorCode('LSauth_02');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Authentication succeeded
|
||||
return array_pop($authobjects);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue