[Fusionforge-commits] r14640 - in trunk: . src/plugins/moinmoin/lib

Roland Mas lolando at fusionforge.org
Fri Oct 14 18:05:53 CEST 2011


Author: lolando
Date: 2011-10-14 18:05:53 +0200 (Fri, 14 Oct 2011)
New Revision: 14640

Modified:
   trunk/
   trunk/src/plugins/moinmoin/lib/fusionforge.py
Log:
Make FusionForge authentication always authoritative

Modified: trunk/src/plugins/moinmoin/lib/fusionforge.py
===================================================================
--- trunk/src/plugins/moinmoin/lib/fusionforge.py	2011-10-14 16:05:44 UTC (rev 14639)
+++ trunk/src/plugins/moinmoin/lib/fusionforge.py	2011-10-14 16:05:53 UTC (rev 14640)
@@ -60,6 +60,7 @@
     """ FusionForge session cookie authentication """
 
     name = 'fusionforge_session'
+    logout_possible = False
 
     def __init__(self, cookies=['session_ser'], autocreate=True):
         """ @param cookie: Names of the cookies to parse.
@@ -84,7 +85,7 @@
     def request(self, request, user_obj, **kw):
         cookies = kw.get('cookie')
         if cookies is None or cookies == {}:
-            return user_obj, False
+            return None, False
 
         for cookiename in cookies:
             if cookiename not in self.cookies:
@@ -119,6 +120,6 @@
             if u and self.autocreate:
                 u.create_or_update(True)
             if u and u.valid:
-                return u, True # True to get other methods called, too
-        return user_obj, False # continue with next method in auth list
+                return u, False
+        return None, False
 




More information about the Fusionforge-commits mailing list