From 136dd222849a83c543c38e60de92e45ff7c73ba8 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 21 May 2018 10:53:21 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E8=B0=83=E6=95=B4=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E8=B4=A6=E5=8F=B7=E7=99=BB=E5=BD=95=E5=88=A4=E6=96=AD?= =?UTF-8?q?=20#111?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/controller/Login.php b/application/admin/controller/Login.php index da34f83a8..096d652ea 100644 --- a/application/admin/controller/Login.php +++ b/application/admin/controller/Login.php @@ -59,7 +59,7 @@ class Login extends BasicAdmin strlen($username) < 4 && $this->error('登录账号长度不能少于4位有效字符!'); strlen($password) < 4 && $this->error('登录密码长度不能少于4位有效字符!'); // 用户信息验证 - $user = Db::name('SystemUser')->where('username', $username)->find(); + $user = Db::name('SystemUser')->where('is_deleted', '0')->where('username', $username)->find(); empty($user) && $this->error('登录账号不存在,请重新输入!'); ($user['password'] !== md5($password)) && $this->error('登录密码与账号不匹配,请重新输入!'); empty($user['is_deleted']) || $this->error('账号已经被删除,请联系管理!');