From 179d3d23ba19d1cfad72e961327010fdd123d109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=91=E5=AE=A3=E5=87=AF=28Hun=20Xuankai=29?= <2386984504@qq.com> Date: Tue, 9 May 2023 09:19:43 +0800 Subject: [PATCH] Update Index.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 后台登录时若密码中带有&,后台接收到的会被转义为&,故登录失败,提示密码不正确。 但是在个人资料处修改密码时,密码中带有&是可以修改成功的,所以要在登录处进行修改。 --- 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 862c22435..bc91955a6 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -72,7 +72,7 @@ public function login() } if ($this->request->isPost()) { $username = $this->request->post('username'); - $password = $this->request->post('password'); + $password = html_entity_decode($this->request->post('password')); $keeplogin = $this->request->post('keeplogin'); $token = $this->request->post('__token__'); $rule = [