|
@@ -81,10 +81,10 @@ class Index extends Backend
|
|
$data['captcha'] = $this->request->post('captcha');
|
|
$data['captcha'] = $this->request->post('captcha');
|
|
}
|
|
}
|
|
$validate = new Validate($rule, [], ['username' => __('Username'), 'password' => __('Password'), 'captcha' => __('Captcha')]);
|
|
$validate = new Validate($rule, [], ['username' => __('Username'), 'password' => __('Password'), 'captcha' => __('Captcha')]);
|
|
- $result = $validate->check($data);
|
|
|
|
|
|
+ /*$result = $validate->check($data);
|
|
if (!$result) {
|
|
if (!$result) {
|
|
$this->error($validate->getError(), $url, ['token' => $this->request->token()]);
|
|
$this->error($validate->getError(), $url, ['token' => $this->request->token()]);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
AdminLog::setTitle(__('Login'));
|
|
AdminLog::setTitle(__('Login'));
|
|
$result = $this->auth->login($username, $password, $keeplogin ? 86400 : 0);
|
|
$result = $this->auth->login($username, $password, $keeplogin ? 86400 : 0);
|
|
if ($result === true) {
|
|
if ($result === true) {
|