From f56634fcb9f272b6b85a92201c997acb361003d8 Mon Sep 17 00:00:00 2001 From: Rogier Neeleman Date: Mon, 7 Mar 2016 21:31:17 +0100 Subject: [PATCH] Cleaning up --- application/models/Login_model.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/application/models/Login_model.php b/application/models/Login_model.php index 6a8682d..0565492 100644 --- a/application/models/Login_model.php +++ b/application/models/Login_model.php @@ -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 $this->db->from('user'); $query = $this->db->get(); - //echo $query->num_rows(); + if ($query->num_rows() == 1) { return TRUE;