Compare commits
4 commits
5e7bdb1d3d
...
214545cfc2
Author | SHA1 | Date | |
---|---|---|---|
|
214545cfc2 | ||
|
18adcc4bb0 | ||
|
7b2ce7ab73 | ||
|
bfac58c43a |
1 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ class Db extends Backend {
|
|||
}
|
||||
break;
|
||||
case "password":
|
||||
if (!self::check_password($user, $value))
|
||||
if (!password_verify($value, $user["password"]))
|
||||
$values[self :: $password_field] = password_hash(
|
||||
$value,
|
||||
constant('PASSWORD_'.strtoupper(App::get('auth.db.password_hash_algo')))
|
||||
|
@ -387,7 +387,7 @@ class Db extends Backend {
|
|||
print("No change.\n");
|
||||
return true;
|
||||
}
|
||||
if (self :: update_user($user, $changes, true)) {
|
||||
if (self :: update_user($user, $changes)) {
|
||||
printf("User %s updated\n", $username);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue