From 25caf4a42c7e3a705137e997627249ef71665b53 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 18 Feb 2022 09:47:18 +0100 Subject: Update cache when setting the password Signed-off-by: Joas Schilling --- lib/private/User/Database.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/private/User') 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; -- cgit v1.2.3