Commit 47c3829b authored by 吴贤德's avatar 吴贤德

登陆账号密码需验证status

parent c751edcf
......@@ -31,6 +31,7 @@ class LoginAction extends Action{
if ($this->check_code($code)) {
$where['account'] = $username;
$where['password'] = $password;
$where['status'] = 1;
$r = $UserModel->where($where)->find();
if ($r) {
$this->remove_limit();
......@@ -144,6 +145,7 @@ class LoginAction extends Action{
$where['account'] = $username;
$where['password'] = $password;
$where['status'] = 1;
$r = $UserModel->where($where)->find();
if ($r) {
//验证GA
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment