|
|
@ -18,9 +18,6 @@ class Login_model extends CI_Model |
|
|
|
$username = $this->security->xss_clean($this->input->post('username')); |
|
|
|
$username = $this->security->xss_clean($this->input->post('username')); |
|
|
|
$password = $this->security->xss_clean($this->input->post('password')); |
|
|
|
$password = $this->security->xss_clean($this->input->post('password')); |
|
|
|
$regioid = $this->security->xss_clean($this->input->post('regioid')); |
|
|
|
$regioid = $this->security->xss_clean($this->input->post('regioid')); |
|
|
|
//$username = $this->input->post('username'); |
|
|
|
|
|
|
|
//$password = $this->input->post('password'); |
|
|
|
|
|
|
|
//$regioid = $this->input->post('regioid'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Search for user |
|
|
|
// Search for user |
|
|
|
$this->db->select('id'); |
|
|
|
$this->db->select('id'); |
|
|
@ -30,7 +27,7 @@ class Login_model extends CI_Model |
|
|
|
$this->db->from('user'); |
|
|
|
$this->db->from('user'); |
|
|
|
|
|
|
|
|
|
|
|
$query = $this->db->get(); |
|
|
|
$query = $this->db->get(); |
|
|
|
//echo $query->num_rows(); |
|
|
|
|
|
|
|
if ($query->num_rows() == 1) |
|
|
|
if ($query->num_rows() == 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|