LucasFerraz
Systems Analyst
PHP:
/* Function to check if passed login and password are correct, it uses abstract database model. */
function _check_login() {
$this->load->model("Account_model");
if($this->Account_model->check_login() == false) {
$this->form_validation->set_message("_check_login", "Account name or password are incorrect.");
return false;
}
else
return true; //I want to redirect to a page here
}