Changeset 125


Ignore:
Timestamp:
09/20/11 15:53:34 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix some expired-session weirdness by forcing a fresh login
Add a "Session expired" error fragment on the login page

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r124 r125  
    7474#  $session->param('startwith','login');
    7575#  $session->param('searchsubs','login');
     76}
     77
     78# Just In Case.  Stale sessions should not be resurrectable.
     79if ($sid ne $session->id()) {
     80  changepage(page=> "login", sessexpired => 1);
    7681}
    7782
  • trunk/templates/login.tmpl

    r38 r125  
    66
    77<table id="login">
    8 <TMPL_IF NAME=loginfailed><tr><td colspan="2" class="errmsg" align="center">Error logging in:  Invalid username or password</td></tr></TMPL_IF>
     8<TMPL_IF loginfailed><tr><td colspan="2" class="errmsg" align="center">Error logging in:  Invalid username or password</td></tr></TMPL_IF>
     9<TMPL_IF sessexpired><tr><td colspan="2" class="errmsg" align="center">Your session has expired</td></tr></TMPL_IF>
    910<tr><td colspan="2" class="title" align="center">Please log in:</td></tr>
    1011<tr><td class="inputlabel">Username:</td><td><input type="text" name="username" /></td></tr>
Note: See TracChangeset for help on using the changeset viewer.