mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 11:22:17 -05:00
bug fix: changing password was buggy
This commit is contained in:
parent
5011388f39
commit
1e98ee1de0
@ -108,8 +108,8 @@ class Database {
|
|||||||
public function updatePassword($userId, $password)
|
public function updatePassword($userId, $password)
|
||||||
{
|
{
|
||||||
$sql_update = "UPDATE users SET password=? WHERE id=?";
|
$sql_update = "UPDATE users SET password=? WHERE id=?";
|
||||||
$params_update = array($password, $id);
|
$params_update = array($password, $userId);
|
||||||
$this->updateUserConfig($userId, 'password', $password);
|
$query = $this->executeQuery($sql_update, $params_update);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updateUserConfig($userId, $key, $value) {
|
public function updateUserConfig($userId, $key, $value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user