aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-02-18 09:47:18 +0100
committerJoas Schilling <coding@schilljs.com>2022-02-18 09:47:18 +0100
commit25caf4a42c7e3a705137e997627249ef71665b53 (patch)
tree5b4cf3bcf2c76908b6e32909e65f55efbb2df3ee /lib/private/User
parent23ef02fbe2b95a3be6eb21c8864bcbbef8d4a228 (diff)
downloadnextcloud-server-25caf4a42c7e3a705137e997627249ef71665b53.tar.gz
nextcloud-server-25caf4a42c7e3a705137e997627249ef71665b53.zip
Update cache when setting the password
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/Database.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index b2018c02a3e..a9464c27085 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -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;