public function passwordUpdateSave($request) { $users_model = new UsersModel(); $success = $users_model->updatePassword($request['id'], $request['new_password']); if ($success) { $this->data['status'] = "success"; } else { $this->data['status'] = "failed"; $this->error('Could not update password.'); } }