rabin 3 years ago
parent
commit
3b38cc607d
1 changed files with 1 additions and 1 deletions
  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('登录失败,密码错误,请重新输入');
         }