Re: [Help] Login tag displays the login page but I can't login.

"Jonathan Ellis" <[email protected]> Tue, 29 Aug 2006 14:44:56 -0700
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
... I just changed the default login_required render tag to the
following, which might help you:

[[.begin name=login_required singleton=True]]
[[ title = 'This page requires that you log in to continue' ]]
<html>
<head>
  <title>[[= title ]]</title>
</head>
<body>
  [[-- this is about the only time you should have a form definition in
       an Active Tag --]]
  <div align=center><b>[[= title ]]</b></div>
  <form method="post">
  <table align=center>
    [[ if '_spy_login_user' in request.post():{ ]]
    <tr><td colspan=2><b>Invalid user / password!</b></td></tr>
    [[ } ]]
    <tr><td align=right>Login:</td>&nbsp;<td><input type=text
    name=_spy_login_user size=10></td></tr>
    <tr><td align=right>Password:</td>&nbsp;<td><input type=password
    name=_spy_login_password size=10></td></tr>
    <tr><td colspan=2><input type=checkbox name=_spy_login_rememberme
    value=1> Remember this login</td></tr>
    <tr><td colspan=2 align=center><input type=submit
    value="Login"></td></tr>
  </table>
  </form>
</body>
</html>
[[.end]]

-- 
C++ is history repeated as tragedy. Java is history repeated as farce.  --Scott McKay


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642