summaryrefslogtreecommitdiff
path: root/modules/user/controllers/login.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-04 05:49:29 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-04 05:49:29 +0000
commit2f5344c1daa6d318ea85a1a4fe2d12d4660dd72b (patch)
tree504bb717bd167ed9f9d3bb5e7b6bfd1d12c59cee /modules/user/controllers/login.php
parentc63c843f18918ff3b94707bd76de5abf3b6d8428 (diff)
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 :-)
Diffstat (limited to 'modules/user/controllers/login.php')
-rw-r--r--modules/user/controllers/login.php11
1 files changed, 7 insertions, 4 deletions
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