mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix admin change password
This commit is contained in:
parent
59672a6f2c
commit
6e509dab73
@ -69,6 +69,7 @@ class UserController extends Controller
|
||||
}
|
||||
if (isset($params['password'])) {
|
||||
$params['password'] = password_hash($params['password'], PASSWORD_DEFAULT);
|
||||
$params['password_algo'] = NULL;
|
||||
} else {
|
||||
unset($params['password']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user