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