summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-11 15:59:17 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-11 15:59:17 -0800
commitcd45c94fe69f24b0f80a79e4b9c402763739ecfc (patch)
tree408e96382d1cdf782ea6e2a0afbfd92770cfb9ad /modules
parentdc94f6e45a7d45747582cd0ab99439330cd844f1 (diff)
Get rid of unnecessary view file.
Diffstat (limited to 'modules')
-rw-r--r--modules/user/controllers/password.php7
-rw-r--r--modules/user/views/confirm_reset_password.html.php2
2 files changed, 3 insertions, 6 deletions
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"));
diff --git a/modules/user/views/confirm_reset_password.html.php b/modules/user/views/confirm_reset_password.html.php
deleted file mode 100644
index 4993189e..00000000
--- a/modules/user/views/confirm_reset_password.html.php
+++ /dev/null
@@ -1,2 +0,0 @@
-<?php defined("SYSPATH") or die("No direct script access.") ?>
-<?= $form ?> \ No newline at end of file