From 43e8ccbbe10cbc7cf9aa585bf953d8957593c748 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 21 May 2018 10:26:11 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=AD=A3=E5=B7=B2?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=99=BB=E5=BD=95=E5=A4=84=E7=90=86=20#111?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/admin/controller/Login.php b/application/admin/controller/Login.php index c133ee7ec..da34f83a8 100644 --- a/application/admin/controller/Login.php +++ b/application/admin/controller/Login.php @@ -62,6 +62,7 @@ class Login extends BasicAdmin $user = Db::name('SystemUser')->where('username', $username)->find(); empty($user) && $this->error('登录账号不存在,请重新输入!'); ($user['password'] !== md5($password)) && $this->error('登录密码与账号不匹配,请重新输入!'); + empty($user['is_deleted']) || $this->error('账号已经被删除,请联系管理!'); empty($user['status']) && $this->error('账号已经被禁用,请联系管理!'); // 更新登录信息 $data = ['login_at' => Db::raw('now()'), 'login_num' => Db::raw('login_num+1')];