aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/Database.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index e88549c8d81..2353aeeb26e 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -293,14 +293,14 @@ class Database extends ABackend implements
/**
* Check if the password is correct
*
- * @param string $uid The username
+ * @param string $loginName The loginname
* @param string $password The password
* @return string
*
* Check if the password is correct without logging in the user
* returns the user id or false
*/
- public function checkPassword(string $uid, string $password) {
+ public function checkPassword(string $loginName, string $password) {
$this->fixDI();
$qb = $this->dbConn->getQueryBuilder();
@@ -308,7 +308,7 @@ class Database extends ABackend implements
->from($this->table)
->where(
$qb->expr()->eq(
- 'uid_lower', $qb->createNamedParameter(mb_strtolower($uid))
+ 'uid_lower', $qb->createNamedParameter(mb_strtolower($loginName))
)
);
$result = $qb->execute();
@@ -320,7 +320,7 @@ class Database extends ABackend implements
$newHash = '';
if (\OC::$server->getHasher()->verify($password, $storedHash, $newHash)) {
if (!empty($newHash)) {
- $this->updatePassword($uid, $newHash);
+ $this->updatePassword($loginName, $newHash);
}
return (string)$row['uid'];
}