mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-17 11:15:16 +00:00
bug fix: changing password was buggy
This commit is contained in:
parent
5011388f39
commit
1e98ee1de0
1 changed files with 2 additions and 2 deletions
|
@ -108,8 +108,8 @@ class Database {
|
|||
public function updatePassword($userId, $password)
|
||||
{
|
||||
$sql_update = "UPDATE users SET password=? WHERE id=?";
|
||||
$params_update = array($password, $id);
|
||||
$this->updateUserConfig($userId, 'password', $password);
|
||||
$params_update = array($password, $userId);
|
||||
$query = $this->executeQuery($sql_update, $params_update);
|
||||
}
|
||||
|
||||
public function updateUserConfig($userId, $key, $value) {
|
||||
|
|
Loading…
Reference in a new issue