private function _resetPassword()
{
if ($this->validateResetForm() === TRUE) {
$reset['email'] = $this->input->post('user_email');
if ($this->Staffs_model->resetPassword($reset['email'])) {
// checks if form validation routines ran successfully
$this->alert->set('success', $this->lang->line('alert_success_reset'));
return TRUE;
}
$this->alert->set('danger', $this->lang->line('alert_email_not_sent'));
redirect('login/reset');
}
}