mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix warning caused by global auth
This commit is contained in:
parent
089b60cd25
commit
b7d27ab141
1 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue