[eluser]Niube[/eluser]
hi i'm new here so if i do wrong in this forum,please let me know first...
okey back to topic,if i forget the password what code must i change?i try to find in proces login but i can't find one...Here the code.
function process_login()
{
$this->form_validation->set_rules('username', 'Username', 'required');
$this->form_validation->set_rules('password', 'Password', 'required');
if ($this->form_validation->run() == TRUE)
{
$username = $this->input->post('username');
$password = $this->input->post('password');
if ($this->Login_model->check_user($username, $password) == TRUE)
{
$data = array('username' => $username, 'login' => TRUE);
$this->session->set_userdata($data);
redirect('absen');
}
else
{
$this->session->set_flashdata('message', 'Maaf, username dan atau password Anda salah');
redirect('login/index');
}
}
else
{
$this->load->view('login/login_view');
}
}
Please Help me out...