From cd45c94fe69f24b0f80a79e4b9c402763739ecfc Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Thu, 11 Feb 2010 15:59:17 -0800 Subject: Get rid of unnecessary view file. --- modules/user/controllers/password.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/user/controllers') diff --git a/modules/user/controllers/password.php b/modules/user/controllers/password.php index 2f8dd990..f5190974 100644 --- a/modules/user/controllers/password.php +++ b/modules/user/controllers/password.php @@ -116,20 +116,19 @@ class Password_Controller extends Controller { "mistyped", t("The password and the confirm password must match")); $group->submit("")->value(t("Update")); - $template->content = new View("confirm_reset_password.html"); - $template->content->form = $form; + $template->content = $form; return $template; } private function _change_password() { $view = $this->_new_password_form(); - if ($view->content->form->validate()) { + if ($view->content->validate()) { $user = user::lookup_by_hash(Input::instance()->post("hash")); if (empty($user)) { throw new Exception("@todo FORBIDDEN", 503); } - $user->password = $view->content->form->reset->password->value; + $user->password = $view->content->reset->password->value; $user->hash = null; $user->save(); message::success(t("Password reset successfully")); -- cgit v1.2.3