|
楼主 |
发表于 2009-11-18 18:27:17
|
显示全部楼层
function is_max_login_attempts_exceeded()
{
$this->ci->load->model('dx_auth/login_attempts', 'login_attempts');
return ($this->ci->login_attempts->check_attempts($this->ci->input->ip_address())->num_rows() >= $this->ci->config->item('DX_max_login_attempts'));
//return ($this->ci->login_attempts->check_attempts($this->ci->input->ip_address()) >= $this->ci->config->item('DX_max_login_attempts'));
} |
|