Update cache when setting the password

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-02-18 09:47:18 +01:00
parent 23ef02fbe2
commit 25caf4a42c
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -193,7 +193,13 @@ class Database extends ABackend implements
$hasher = \OC::$server->getHasher();
$hashedPassword = $hasher->hash($password);
return $this->updatePassword($uid, $hashedPassword);
$return = $this->updatePassword($uid, $hashedPassword);
if ($return) {
$this->cache[$uid]['password'] = $hashedPassword;
}
return $return;
}
return false;