mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +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)) {
|
if (!$authobjects || !is_array($authobjects)) {
|
||||||
LSerror :: addErrorCode('LSauth_01');
|
LSerror :: addErrorCode('LSauth_01');
|
||||||
self :: log_debug("No user found for provided username '".$this -> authData['username']."'");
|
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)));
|
self :: log_debug('Multiple users match with provided username: '.implode(', ', array_keys($authobjects)));
|
||||||
LSerror :: addErrorCode('LSauth_02');
|
LSerror :: addErrorCode('LSauth_02');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Authentication succeeded
|
// Authentication succeeded
|
||||||
return array_pop($authobjects);
|
return array_pop($authobjects);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue