Browse Source

Cleaning up

master
Rogier Neeleman 9 years ago
parent
commit
f56634fcb9
  1. 5
      application/models/Login_model.php

5
application/models/Login_model.php

@ -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;

Loading…
Cancel
Save