mirror of https://gitee.com/karson/fastadmin.git
update application/admin/controller/Index.php.
解决登录验证码填错的时候 后台日志标题会为空 Signed-off-by: 御宅男(YznCMS创始者) <530765310@qq.com>pull/461/head
parent
1cc09a5a19
commit
137218ddf4
|
|
@ -93,10 +93,10 @@ class Index extends Backend
|
||||||
}
|
}
|
||||||
$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);
|
||||||
|
AdminLog::setTitle(__('Login'));
|
||||||
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'));
|
|
||||||
$result = $this->auth->login($username, $password, $keeplogin ? $keeyloginhours * 3600 : 0);
|
$result = $this->auth->login($username, $password, $keeplogin ? $keeyloginhours * 3600 : 0);
|
||||||
if ($result === true) {
|
if ($result === true) {
|
||||||
Hook::listen("admin_login_after", $this->request);
|
Hook::listen("admin_login_after", $this->request);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue