diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-05 10:04:22 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-05 10:04:22 +0100 |
commit | 96ccbca2e3c0e588eb2d2cadefda6b8556f2e97b (patch) | |
tree | 3b91cbc1012e47341d48d25fa1e3c3250295ed1d /apps/files_external | |
parent | 0ed2108b7f3a8537643b89823d628e4db18ecf61 (diff) | |
parent | b7d27ab141ba13b7e3481a025861e05104931c69 (diff) | |
download | nextcloud-server-96ccbca2e3c0e588eb2d2cadefda6b8556f2e97b.tar.gz nextcloud-server-96ccbca2e3c0e588eb2d2cadefda6b8556f2e97b.zip |
Merge pull request #22135 from owncloud/global-auth-warning
fix warning caused by global auth
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/auth/password/globalauth.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_external/lib/auth/password/globalauth.php b/apps/files_external/lib/auth/password/globalauth.php index dcfea65b555..b1e52fb53ab 100644 --- a/apps/files_external/lib/auth/password/globalauth.php +++ b/apps/files_external/lib/auth/password/globalauth.php @@ -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; } |