mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
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 <mail@sven-seeberg.de>
This commit is contained in:
parent
9267cc64a0
commit
7fd3d30418
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user