mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
perf: Return cached password hash
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
d65f53184e
commit
dba00560d2
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue