mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 14:11:01 -04:00
Get rid of unnecessary view file.
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user