mirror of
https://github.com/v2board/v2board.git
synced 2025-01-27 00:19:10 +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'])) {
|
if (isset($params['password'])) {
|
||||||
$params['password'] = password_hash($params['password'], PASSWORD_DEFAULT);
|
$params['password'] = password_hash($params['password'], PASSWORD_DEFAULT);
|
||||||
|
$params['password_algo'] = NULL;
|
||||||
} else {
|
} else {
|
||||||
unset($params['password']);
|
unset($params['password']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user