rabin 3 tahun lalu
induk
melakukan
3b38cc607d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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('登录失败,密码错误,请重新输入');
         }