rabin před 3 roky
rodič
revize
f794565bed
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      service/agent/src/Auth.php

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