|
@@ -509,6 +509,7 @@ class UserService implements UserServiceInterface
|
|
|
'password' => md5(md5($data['new_password1']) . $userInfo['salt']),
|
|
|
];
|
|
|
if ($userInfo['password'] != md5(md5($data['password']) . $userInfo['salt'])) {
|
|
|
+ Db::rollBack();
|
|
|
return Result::error('您输入的密码错误');
|
|
|
}
|
|
|
$userRep = User::where(['id' => $data['user_id']])->update($dataUserReq);
|