CVS: tmda-cgi Session.py,1.34,1.35
Gre7g Luterman <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv9861
Modified Files:
Session.py
Log Message:
If the user's IP address changes, they are shown an error message describing
the problem and told to log back in. Added a link back to the login page.
Index: Session.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/Session.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- Session.py 11 Jun 2003 22:17:20 -0000 1.34
+++ Session.py 14 Jun 2003 14:52:10 -0000 1.35
@@ -320,7 +320,8 @@
CgiUtil.TermError("User's IP address has changed.",
"Your IP address has changed. This is not allowed.",
"read session data", "%s->%s" %
- (self.Vars["IP"], os.environ["REMOTE_ADDR"]), "Log back in.")
+ (self.Vars["IP"], os.environ["REMOTE_ADDR"]),
+ '<a href="%s">Log back in</a>.' % os.environ["SCRIPT_NAME"])
# Are they logging out?
if Form.has_key("cmd") and (Form["cmd"].value == "logout"):
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs