Browse Source

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>
pull/457/head
Sven Seeberg 5 years ago
parent
commit
160fb32441
No known key found for this signature in database GPG Key ID: 29559DD5A83806B5
  1. 2
      model/Login.php

2
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);

Loading…
Cancel
Save