application/controllers/Login.php
/* check the user is valid or not */
check the user is valid or not
check the user is valid or not
public function validate_user()
	{   
		if($q=$this->Login_model->validate_user()){
			redirect('admin/Dashboard');
		}else{
			$this->session->set_flashdata('login_failure','Username Or Password Incorrect.');
			redirect('login/index','refresh');
		}
	}
public function validate_user ( ) { if ( $ q = $ this -> Login_model -> validate_user ( ) ) { redirect ( 'admin/Dashboard' ) ; } else { $ this -> session -> set_flashdata ( 'login_failure' , 'Username Or Password Incorrect.' ) ; redirect ( 'login/index' , 'refresh' ) ; } }
check the user is valid or not
check the user is valid or not
//$login_data = $this->config->item('login_data');