Forráskód Böngészése

账号激活状态才能登录

shenzhipeng 2 éve
szülő
commit
482aa63bb7
1 módosított fájl, 1 hozzáadás és 1 törlés
  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];
 		}