changeset 1998:34391ad2825c

fix cookie handling When anon sessions are disabled 1990:9051a3a23124 introduced a bug. This fixes it.
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 17 Apr 2007 11:09:06 +0200
parents aee7c17cea24
children a82f06dba7ca
files MoinMoin/auth/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/__init__.py	Sun Apr 15 11:37:42 2007 +0200
+++ b/MoinMoin/auth/__init__.py	Tue Apr 17 11:09:06 2007 +0200
@@ -418,7 +418,7 @@
             # No other method succeeded, so allow continuation...
             # XXX Cookie clear here???
             if verbose: request.log("moin_session did not get valid user from previous auth method, doing nothing")
-            if len(cookieitems) == 1:
+            if cookievalue and len(cookieitems) == 1:
                 # keep non-logged in session
                 setAnonCookie(request, cookieitems[0])
             return user_obj, True