aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/User/Database.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index 0a0231a7784..194e998ef4f 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -183,6 +183,9 @@ class Database extends ABackend implements
if (!$this->userExists($userId)) {
return null;
}
+ if (!empty($this->cache[$userId]['password'])) {
+ return $this->cache[$userId]['password'];
+ }
$qb = $this->dbConn->getQueryBuilder();
$qb->select('password')
->from($this->table)