zac3533 il y a 1 an
Parent
commit
1c549854d4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()]);
             }