Jelajahi Sumber

修改登录密码解密

liaofei 2 tahun lalu
induk
melakukan
488e32afa1
1 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 5 4
      crmeb/app/adminapi/controller/Login.php

+ 5 - 4
crmeb/app/adminapi/controller/Login.php

@@ -95,9 +95,6 @@ class Login extends AuthController
             ['captchaType', '']
             ['captchaType', '']
         ], true);
         ], true);
 
 
-        if (strlen(trim($password)) < 6 || strlen(trim($password)) > 32) {
-            return app('json')->fail(400762);
-        }
 
 
         if ($captchaVerification != '') {
         if ($captchaVerification != '') {
             try {
             try {
@@ -112,7 +109,11 @@ class Login extends AuthController
         } catch (\Throwable $e) {
         } catch (\Throwable $e) {
             return app('json')->fail($e->getMessage());
             return app('json')->fail($e->getMessage());
         }
         }
-        
+
+        if (strlen(trim($password)) < 6 || strlen(trim($password)) > 32) {
+            return app('json')->fail(400762);
+        }
+
         $this->validate(['account' => $account, 'pwd' => $password], \app\adminapi\validate\setting\SystemAdminValidata::class, 'get');
         $this->validate(['account' => $account, 'pwd' => $password], \app\adminapi\validate\setting\SystemAdminValidata::class, 'get');