From 2f5344c1daa6d318ea85a1a4fe2d12d4660dd72b Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 4 Feb 2009 05:49:29 +0000 Subject: A preview of the password reset functionality. What's working... you can start to logon, request the password to be reset, and an email is sent to the users email address. If you click on the link you get an unformatted form. But its a start :-) --- modules/user/controllers/login.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'modules/user/controllers/login.php') diff --git a/modules/user/controllers/login.php b/modules/user/controllers/login.php index c9a32546..bf45746d 100644 --- a/modules/user/controllers/login.php +++ b/modules/user/controllers/login.php @@ -27,7 +27,7 @@ class Login_Controller extends Controller { } private function _try_login() { - $form = $this->_login_form(); + $form = $this->_login_form()->form; $valid = $form->validate(); if ($valid) { @@ -53,12 +53,15 @@ class Login_Controller extends Controller { } private function _login_form() { - $form = new Forge(url::current(true), "", "post", array("id" => "gLoginForm")); - $group = $form->group("login")->label(t("Login")); + $view = new View("login_prompt.html"); + + $view->form = new Forge(url::current(true), "", "post", array("id" => "gLoginForm")); + $group = $view->form->group("login")->label(t("Login")); $group->input("name")->label(t("Name"))->id("gName")->class(null); $group->password("password")->label(t("Password"))->id("gPassword")->class(null); $group->inputs["name"]->error_messages("invalid_login", t("Invalid name or password")); $group->submit("")->value(t("Login")); - return $form; + + return $view; } } \ No newline at end of file -- cgit v1.2.3