浏览代码

账号激活状态才能登录

shenzhipeng 2 年之前
父节点
当前提交
482aa63bb7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/lib/data/adminAction.php

+ 1 - 1
application/lib/data/adminAction.php

@@ -12,7 +12,7 @@ class AdvertAdminAction extends BaseAction{
 
 		//登录
 		public function selectUser($uname,$pwd){
-			$sql    = "select * from ly_user where uname='$uname' and pwd='$pwd' limit 1";
+			$sql    = "select * from ly_user where uname='$uname' and pwd='$pwd' and active=1 limit 1";
 			$result = $this->getDbEntity()->query($sql);
 			return $result[0];
 		}