fix warning caused by global auth
This commit is contained in:
parent
089b60cd25
commit
b7d27ab141
|
@ -55,7 +55,10 @@ class GlobalAuth extends AuthMechanism {
|
|||
public function getAuth($uid) {
|
||||
$auth = $this->credentialsManager->retrieve($uid, self::CREDENTIALS_IDENTIFIER);
|
||||
if (!is_array($auth)) {
|
||||
return [];
|
||||
return [
|
||||
'user' => '',
|
||||
'password' => ''
|
||||
];
|
||||
} else {
|
||||
return $auth;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue