Skip to content
Snippets Groups Projects
Unverified Commit d2d7e37b authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #19312 from nextcloud/fix/18195/do-not-overwrite-user-glob-auth

do not overwrite global user auth credentials with empty values
parents daf6887c 7e1d14d9
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,11 @@ class UserGlobalAuth extends AuthMechanism {
}
public function saveBackendOptions(IUser $user, $id, $backendOptions) {
// backendOptions are set when invoked via Files app
// but they are not set when invoked via ext storage settings
if(!isset($backendOptions['user']) && !isset($backendOptions['password'])) {
return;
}
// make sure we're not setting any unexpected keys
$credentials = [
'user' => $backendOptions['user'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment