浏览代码

快捷搜索

zac3533 1 年之前
父节点
当前提交
1c549854d4
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()]);
             }