--- standalone.py	Sun Jul 23 21:07:35 2006
+++ standalone.py.modified	Sun Jul 23 21:11:53 2006
@@ -286,17 +286,23 @@
         if not env:
             self.server.send_project_index(req)
             return
-        
-        req.remote_user = None
-        if path_info == '/login':
-            auth = self.server.auths.get(project_name) or \
-                   self.server.auths.get('*')
-            if not auth:
-                raise util.TracError('Authentication not enabled. '
-                                     'Please use the tracd --auth option.\n')
-            req.remote_user = auth.do_auth(self)
-            if not req.remote_user:
-                return
+
+        # XGE 2007-07-23 Ticket 3036 is fixed in Trac trunk (changeset 3158)
+        # but this is not fixed in this version (0.9.6). I added this if block
+        # to quickly hack a solution. "if True" gives default Trac behaviour,
+        # "if False" disables the login check in TracD and allows the 
+        # AccountManager plugin to work. Warning: Barely tested.
+        if True:
+            req.remote_user = None
+            if path_info == '/login':
+                auth = self.server.auths.get(project_name) or \
+                       self.server.auths.get('*')
+                if not auth:
+                    raise util.TracError('Authentication not enabled. '
+                                         'Please use the tracd --auth option.\n')
+                req.remote_user = auth.do_auth(self)
+                if not req.remote_user:
+                    return
 
         try:
             start = time.time()

