mirror of https://gitee.com/karson/fastadmin.git
Pre Merge pull request !461 from 御宅男(YznCMS官方)/N/A
commit
ddcb917921
|
|
@ -93,10 +93,10 @@ class Index extends Backend
|
|||
}
|
||||
$validate = new Validate($rule, [], ['username' => __('Username'), 'password' => __('Password'), 'captcha' => __('Captcha')]);
|
||||
$result = $validate->check($data);
|
||||
AdminLog::setTitle(__('Login'));
|
||||
if (!$result) {
|
||||
$this->error($validate->getError(), $url, ['token' => $this->request->token()]);
|
||||
}
|
||||
AdminLog::setTitle(__('Login'));
|
||||
$result = $this->auth->login($username, $password, $keeplogin ? $keeyloginhours * 3600 : 0);
|
||||
if ($result === true) {
|
||||
Hook::listen("admin_login_after", $this->request);
|
||||
|
|
|
|||
Loading…
Reference in New Issue