mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-16 18:32:07 -04:00
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
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user