diff --git a/apps/files_external/lib/auth/password/globalauth.php b/apps/files_external/lib/auth/password/globalauth.php index dcfea65b55..b1e52fb53a 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; }