mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Update cache when setting the password
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
23ef02fbe2
commit
25caf4a42c
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue