Home > Backend Development > PHP Tutorial > 菜鸟攻,求大神看看,谢谢

菜鸟攻,求大神看看,谢谢

WBOY
Release: 2016-06-20 12:31:40
Original
946 people have browsed it

$username = $filter->filter(($this->_request->getPost('username')));
$condition = '`username` = "'.$username.'"';
$row_user = $this -> defaultModel -> fetchAll($condition)->toArray();
$row_user = $row_user[0];

if(empty($row_user['id'])){
parent::showMsgByJS('用户名或密码错误!','-1');exit;
}

if($row_user['state'] != 1){
parent::showMsgByJS('该账号已经被锁定,请联系管理员!','-1');exit;
}
if(!$member->loginValidate($row)){
parent::showMsgByJS('用户名或密码错误!','-1');exit;
}
用户名密码登陆网页时,总显示(用户名和密码错误),是不是这一行代码的问题,
if(!$member->loginValidate($row)){
parent::showMsgByJS('用户名或密码错误!','-1');exit;
}
是什么意思?怎么解决?在线等,谢谢


回复讨论(解决方案)

print($row_user)
 这个看看

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template