summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/auth/password/globalauth.php5
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;
}