Browse Source

快捷搜索

zac3533 1 year ago
parent
commit
1c549854d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/admin/controller/Index.php

+ 1 - 1
application/admin/controller/Index.php

@@ -92,7 +92,7 @@ class Index extends Backend
                 $data['captcha'] = $this->request->post('captcha');
             }
             $validate = new Validate($rule, [], ['username' => __('Username'), 'password' => __('Password'), 'captcha' => __('Captcha')]);
-            $result = 1;// $validate->check($data);
+            $result = $validate->check($data);
             if (!$result) {
                 $this->error($validate->getError(), $url, ['token' => $this->request->token()]);
             }