Merge pull request #22135 from owncloud/global-auth-warning
fix warning caused by global auth
This commit is contained in:
commit
96ccbca2e3
|
@ -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