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