diff --git a/application/controllers/Employees.php b/application/controllers/Employees.php index e3266c53f..62a6fba0e 100644 --- a/application/controllers/Employees.php +++ b/application/controllers/Employees.php @@ -210,20 +210,5 @@ class Employees extends Persons echo json_encode(array('success' => FALSE, 'message' => $this->lang->line('employees_cannot_be_deleted'))); } } - - /* - Loads the change password form - */ - public function change_password($employee_id = -1) - { - $person_info = $this->Employee->get_info($employee_id); - foreach(get_object_vars($person_info) as $property => $value) - { - $person_info->$property = $this->xss_clean($value); - } - $data['person_info'] = $person_info; - - $this->load->view('employees/form_change_password', $data); - } } ?> diff --git a/application/controllers/Home.php b/application/controllers/Home.php index a9ba0b627..ea32c6538 100644 --- a/application/controllers/Home.php +++ b/application/controllers/Home.php @@ -18,5 +18,20 @@ class Home extends Secure_Controller { $this->Employee->logout(); } + + /* + Loads the change password form + */ + public function change_password($employee_id = -1) + { + $person_info = $this->Employee->get_info($employee_id); + foreach(get_object_vars($person_info) as $property => $value) + { + $person_info->$property = $this->xss_clean($value); + } + $data['person_info'] = $person_info; + + $this->load->view('employees/form_change_password', $data); + } } ?> diff --git a/application/views/partial/header.php b/application/views/partial/header.php index a6eb52b2b..ca6fe1eef 100644 --- a/application/views/partial/header.php +++ b/application/views/partial/header.php @@ -98,7 +98,7 @@