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

登陆账号密码需验证status

parent c751edcf
...@@ -31,6 +31,7 @@ class LoginAction extends Action{ ...@@ -31,6 +31,7 @@ class LoginAction extends Action{
if ($this->check_code($code)) { if ($this->check_code($code)) {
$where['account'] = $username; $where['account'] = $username;
$where['password'] = $password; $where['password'] = $password;
$where['status'] = 1;
$r = $UserModel->where($where)->find(); $r = $UserModel->where($where)->find();
if ($r) { if ($r) {
$this->remove_limit(); $this->remove_limit();
...@@ -144,6 +145,7 @@ class LoginAction extends Action{ ...@@ -144,6 +145,7 @@ class LoginAction extends Action{
$where['account'] = $username; $where['account'] = $username;
$where['password'] = $password; $where['password'] = $password;
$where['status'] = 1;
$r = $UserModel->where($where)->find(); $r = $UserModel->where($where)->find();
if ($r) { if ($r) {
//验证GA //验证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