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