Commit c90d5747 authored by Alan Garcia's avatar Alan Garcia
Browse files

Optimisation requetes login

parent 7f47a40b
......@@ -82,7 +82,7 @@ if (!$_SERVER[HTTPS]) {
<tr><th align="right"><label for="password"><?php echo _("Password"); ?></label></th><td><input type="password" class="int" name="password" id="password" value="" maxlength="128" size="15" /></td></tr>
<tr><td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /><input type="hidden" id="restrictip" name="restrictip" value="1" /></td></tr>
</table>
<input type="hidden" id="authip_token" name="authip_token" value="<?php echo htmlentities($authip_token) ?>" />
<input type="hidden" id="authip_token" name="authip_token" value="<?php echo htmlentities( (empty($authip_token)?'':$authip_token) ) ?>" />
</form>
</td></tr>
......
......@@ -38,6 +38,8 @@ if (!$mem->checkid())
exit();
}
$mem->resetlast();
include("main.php");
exit;
......
......@@ -45,7 +45,6 @@ if ($mem->user["lastfail"]) {
printf(_("%1\$d login failed since last login")."<br />",$mem->user["lastfail"]);
}
$mem->resetlast();
/*
use MagpieRSS to syndicate content from another site if available
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment