rkljw hai 1 mes
pai
achega
cb5c7cb08a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/JsonRpc/UserService.php

+ 1 - 0
app/JsonRpc/UserService.php

@@ -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);