From 7fd3d30418b1f1978173d8254e29a97aef97596b Mon Sep 17 00:00:00 2001 From: Sven Seeberg Date: Fri, 19 Feb 2021 08:56:29 +0100 Subject: [PATCH] Change Login changePassword, fixes #456 * The db_udpate function already sets backticks around the table name, which results and error name if the string passed as argument for the table name already contains backticks. Signed-off-by: Sven Seeberg --- model/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/Login.php b/model/Login.php index 80abbba6..4f94c3ec 100644 --- a/model/Login.php +++ b/model/Login.php @@ -110,7 +110,7 @@ class Login { 'password' => pacrypt($new_password), ); - $result = db_update($this->key_table, 'username', $username, $set); + $result = db_update($this->table, 'username', $username, $set); if ($result != 1) { db_log($domain, 'edit_password', "FAILURE: " . $username);