diff roundup/cgi/client.py @ 2489:b81c9679f5de

fixed REMOTE_USER (external HTTP Basic auth) [SF#977309]
author Richard Jones <richard@users.sourceforge.net>
date Tue, 22 Jun 2004 23:35:16 +0000
parents 76ead526113d
children 091711fb2f8c
line wrap: on
line diff
--- a/roundup/cgi/client.py	Mon Jun 21 06:02:28 2004 +0000
+++ b/roundup/cgi/client.py	Tue Jun 22 23:35:16 2004 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.179 2004-06-15 09:19:49 a1s Exp $
+# $Id: client.py,v 1.180 2004-06-22 23:35:16 richard Exp $
 
 """WWW request handler (also used in the stand-alone server).
 """
@@ -364,6 +364,8 @@
         self.clean_sessions()
         sessions = self.db.getSessionManager()
 
+        user = 'anonymous'
+
         # first up, try the REMOTE_USER var (from HTTP Basic Auth handled
         # by a front-end HTTP server)
         try:
@@ -373,7 +375,6 @@
 
         # look up the user session cookie (may override the REMOTE_USER)
         cookie = self.cookie
-        user = 'anonymous'
         if (cookie.has_key(self.cookie_name) and
                 cookie[self.cookie_name].value != 'deleted'):
 

Roundup Issue Tracker: http://roundup-tracker.org/