Pre Merge pull request !461 from 御宅男(YznCMS官方)/N/A

pull/461/MERGE
御宅男(YznCMS官方) 2024-04-26 03:47:11 +00:00 committed by Gitee
commit ddcb917921
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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);