From 137218ddf45a9d60e28d099418a09c75eeb44380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=AE=85=E7=94=B7=28YznCMS=E5=88=9B=E5=A7=8B?= =?UTF-8?q?=E8=80=85=29?= <530765310@qq.com> Date: Thu, 22 Feb 2024 09:09:12 +0000 Subject: [PATCH] =?UTF-8?q?update=20application/admin/controller/Index.php?= =?UTF-8?q?.=20=E8=A7=A3=E5=86=B3=E7=99=BB=E5=BD=95=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E5=A1=AB=E9=94=99=E7=9A=84=E6=97=B6=E5=80=99=20?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=97=A5=E5=BF=97=E6=A0=87=E9=A2=98=E4=BC=9A?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 御宅男(YznCMS创始者) <530765310@qq.com> --- application/admin/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 63c2ba924..835f4e9aa 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -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); -- Gitee