林海涛 1 rok temu
rodzic
commit
83e1a62212
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      app/workerapi/validate/LoginAccountValidate.php

+ 4 - 4
app/workerapi/validate/LoginAccountValidate.php

@@ -106,10 +106,10 @@ Class LoginAccountValidate  extends BaseValidate
 
         $passwordSalt = Config::get('project.unique_identification');
 
-//        if ($userInfo['password'] !== create_password($password, $passwordSalt)) {
-//            $userAccountSafeCache->record();
-//            return '密码错误';
-//        }
+        if ($userInfo['password'] !== create_password($password, $passwordSalt)) {
+            $userAccountSafeCache->record();
+            return '密码错误';
+        }
 
         $userAccountSafeCache->relieve();