diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-15 06:23:09 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-15 06:23:09 +0000 |
| commit | ae7839ffaada72c522ffcd9b3f4f1cc04027a720 (patch) | |
| tree | 50ce67306eace68cd23c294fc1aa40ba32c03bcc /modules/user/views | |
| parent | 26c8772e16b0328358d23ee4c29f9b592e632b28 (diff) | |
Revise the user login code.
* Remove user registration link and popup from the theme; this
shouldn't be done in a popup. Use ajaxform to simplify the way
that we load the login popup.
* Create form.html.php, this is a template for Forge based forms.
* Move user validation rules into User_Model and let forms
populate the rules into their forms as useful.
* Undo r18688's changes regarding the REST code. We should never
accept a null resource, this breaks the REST abstraction.
* Change login and user controllers to use Forge which lets us delete
login.html.php and user.html.php since those now are generated by
the theme-owned form template
Diffstat (limited to 'modules/user/views')
| -rw-r--r-- | modules/user/views/login.html.php | 21 | ||||
| -rw-r--r-- | modules/user/views/user.html.php | 34 |
2 files changed, 0 insertions, 55 deletions
diff --git a/modules/user/views/login.html.php b/modules/user/views/login.html.php deleted file mode 100644 index 78e03b46..00000000 --- a/modules/user/views/login.html.php +++ /dev/null @@ -1,21 +0,0 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> -<form id="gLogin" action="<?= url::site("login/process") ?>"> - <fieldset> - <legend><?= _("Login") ?></legend> - <ul> - <li> - <label for="gUsername"><?= _("Username") ?></label> - <input type="text" name="username" id="gUsername" /> - </li> - <li> - <label for="gPassword"><?= _("Password") ?></label> - <input type="password" name="password" id="gPassword" /> - </li> - <li> - <input type="submit" value="<?= _("Login")?>" /> - </li> - </ul> - <div id="gLoginMessage" class="gStatus gError gDisplayNone"> - </div> - </fieldset> -</form> diff --git a/modules/user/views/user.html.php b/modules/user/views/user.html.php deleted file mode 100644 index 614645e5..00000000 --- a/modules/user/views/user.html.php +++ /dev/null @@ -1,34 +0,0 @@ -<? defined("SYSPATH") or die("No direct script access."); ?> -<form id="gUser" action="<?= url::site("user/dispatch/$user_id") ?>"> - <fieldset> - <legend><?= $action ?></legend> - <ul> - <li> - <label for="gUsername"><?= _("Username") ?></label> - <input type="text" id="gUsername" /> - <span id="gUsername_error" class="gStatus gError gDisplayNone"></span> - </li> - <li> - <label for="gPassword"><?= _("Password") ?></label> - <input type="password" id="gPassword" /> - <span id="gPassword_error" class="gStatus gError gDisplayNone"></span> - </li> - <li> - <label for="gPassword_confirm"><?= _("Confirm Password") ?></label> - <input type="password" id="gPassword_confirm" /> - </li> - <li> - <label for="gEmail"><?= _("Password") ?></label> - <input type="password" id="gEmail" /> - <span id="gEmail_error" class="gStatus gError gDisplayNone"></span> - </li> - <li> - <label for="gEmail_confirm"><?= _("Confirm Email") ?></label> - <input type="password" id="gEmaild_confirm" /> - </li> - <li> - <input type="submit" value="<?=$button_text?>" /> - </li> - </ul> - </fieldset> -</form> |
