/[shmookey]/portconf/login.py


UCC Code Repository

Diff of /portconf/login.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 119 by shmookey, Tue Jun 3 07:49:09 2008 UTC revision 120 by shmookey, Thu Jun 5 07:30:56 2008 UTC
# Line 44  def ShowDefaultPage (): Line 44  def ShowDefaultPage ():
44                                  $('form.loginform').html ("<table border='0' cellpadding='2' cellspacing='0' class='rowset'>Log-in successful.</table>");                                  $('form.loginform').html ("<table border='0' cellpadding='2' cellspacing='0' class='rowset'>Log-in successful.</table>");
45                                  window.location = "/";                                  window.location = "/";
46                          } else {                          } else {
47                                    if (result == "failure") errorText = "Login failed.";
48                                    else if (result == "dberror") errorText = "There was a problem with the database.";
49                                  $('form.loginform').html ("<table border='0' cellpadding='2' cellspacing='0' class='rowset'>" +                                  $('form.loginform').html ("<table border='0' cellpadding='2' cellspacing='0' class='rowset'>" +
50                                  "<tr><td>Login failed.</td></tr>" +                                  "<tr><td>" + errorText + "</td></tr>" +
51                                  "<tr><td>Username:</td><td><input type='text' id='username'></input></td></tr>" +                                  "<tr><td>Username:</td><td><input type='text' id='username'></input></td></tr>" +
52                                  "<tr><td>Password:</td><td><input type='password' id='password'></input></td></tr>" +                                  "<tr><td>Password:</td><td><input type='password' id='password'></input></td></tr>" +
53                                  "<tr><td><input type='hidden' name='action' value='status' />" +                                  "<tr><td><input type='hidden' name='action' value='status' />" +

Legend:
Removed from v.119  
changed lines
  Added in v.120

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26