aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-19 17:54:00 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-19 18:16:35 +0200
commitfedf9c69d9c84fc0399badef39ed765de72c08f1 (patch)
treebfaae1e7efb907cb236769fada35a9cd05ebf29e /lib/private/User
parent60be722ee8781d9e94ecc66d62c0e5fcb7e3934e (diff)
downloadnextcloud-server-fedf9c69d9c84fc0399badef39ed765de72c08f1.tar.gz
nextcloud-server-fedf9c69d9c84fc0399badef39ed765de72c08f1.zip
Use matching parameter names form interfaces and implementations
Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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'];
}