|
@@ -34,7 +34,7 @@ class User extends Controller
|
|
|
if (!$user) throw new Exception("用户不存在", HttpStatus::CUSTOM_ERROR);
|
|
if (!$user) throw new Exception("用户不存在", HttpStatus::CUSTOM_ERROR);
|
|
|
|
|
|
|
|
if (!empty($params['password'])) {
|
|
if (!empty($params['password'])) {
|
|
|
- $user->password = password_hash($params['password'], PASSWORD_DEFAULT);
|
|
|
|
|
|
|
+ $user->password = create_password($params['password']);
|
|
|
$user->save();
|
|
$user->save();
|
|
|
}
|
|
}
|
|
|
if (!empty($params['payment_password'])) {
|
|
if (!empty($params['payment_password'])) {
|