소스 검색

账号激活状态才能登录

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];
 		}