zengyyh 3 weeks ago
parent d768663a72
commit b65ee55a38
  1. 6
      app/api/service/passport/Login.php

@ -63,7 +63,11 @@ class Login extends BaseService
if (!$userInfo) {
throwError("账号不存在");
}
if ($userInfo['password'] && ($userInfo['password'] != md5($data['password']))) {
if (empty($userInfo['password'])) {
throwError("用户密码为空,请联系管理员");
}
if ($userInfo['password'] !== md5($data['password'])) {
throwError("密码不正确");
}
$this->updateUser($userInfo, $data['isParty'], $data['partyData']);

Loading…
Cancel
Save