rabin 3 年之前
父节点
当前提交
3b38cc607d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/agent/src/Auth.php

+ 1 - 1
service/agent/src/Auth.php

@@ -25,7 +25,7 @@ class Auth
         if (!$user) {
             Dever::alert('登录失败,手机号错误,请重新输入');
         }
-        if ($pass && ($user['password'] != sha1($pass) || $user['password'] != md5($pass))) {
+        if ($pass && ($user['password'] != sha1($pass) && $user['password'] != md5($pass))) {
             Dever::alert('登录失败,密码错误,请重新输入');
         }