public function reset()
{
$this->lang->load('login');
$this->load->model('Staffs_model');
if ($this->user->islogged()) {
redirect('dashboard');
}
$this->template->setTitle($this->lang->line('text_password_reset_title'));
if ($this->input->post() and $this->_resetPassword() === TRUE) {
redirect('login');
}
$data['login_url'] = site_url('login');
$this->template->render('login_reset', $data);
}