Update of /cvsroot/tmda/tmda/contrib/cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv31143
Modified Files:
Login.py
Log Message:
Added a hidden variable in the login page for a login debug mode. See
"Passwords" section of htdocs/tmda-cgi.ht for more details.
Index: Login.py
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/Login.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Login.py 25 Nov 2002 16:51:22 -0000 1.2
+++ Login.py 30 Nov 2002 18:10:43 -0000 1.3
@@ -23,7 +23,7 @@
import os
-def Show(Msg = "Please enter your login information."):
+def Show(Msg = "Please enter your login information.", Debug = 0):
"Show a login form in HTML."
print """Content-type: text/html
@@ -45,19 +45,20 @@
<tr>
<td align="center">%s
<p>
- <table class="LoginInner">
+ <table class="LoginInner" width="250">
<tr>
<td align="right">User:</td>
<td><input name="user" type="text" id="user" size="6"></td>
</tr>
<tr>
- <td>Password:</td>
+ <td align="right">Password:</td>
<td><input name="password" type="password" id="password"
size="6"></td>
</tr>
<tr align="center" valign="bottom">
<td height="25" colspan="2">
<input type="hidden" name="cmd" value="list">
<input type="submit" value="Login" class="LoginButton">
+ <input type="hidden" name="debug" value="%s">
</td>
</tr>
</table>
@@ -73,4 +74,4 @@
</table>
</body>
</html>
-""" % (os.environ["REQUEST_URI"], Msg)
+""" % (os.environ["REQUEST_URI"], Msg, Debug)
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs