fix admin change password

This commit is contained in:
Tokumeikoi 2020-05-23 23:21:49 +08:00
parent 59672a6f2c
commit 6e509dab73

View File

@ -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']);
}