rkljw 1 månad sedan
förälder
incheckning
cb5c7cb08a
1 ändrade filer med 1 tillägg och 0 borttagningar
  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);