comparison MoinMoin/auth/__init__.py @ 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 9051a3a23124
children 1b14cc05a54a
comparison
equal deleted inserted replaced
1994:aee7c17cea24 1998:34391ad2825c
416 return user_obj, True # we make continuing possible, e.g. for smbmount 416 return user_obj, True # we make continuing possible, e.g. for smbmount
417 else: 417 else:
418 # No other method succeeded, so allow continuation... 418 # No other method succeeded, so allow continuation...
419 # XXX Cookie clear here??? 419 # XXX Cookie clear here???
420 if verbose: request.log("moin_session did not get valid user from previous auth method, doing nothing") 420 if verbose: request.log("moin_session did not get valid user from previous auth method, doing nothing")
421 if len(cookieitems) == 1: 421 if cookievalue and len(cookieitems) == 1:
422 # keep non-logged in session 422 # keep non-logged in session
423 setAnonCookie(request, cookieitems[0]) 423 setAnonCookie(request, cookieitems[0])
424 return user_obj, True 424 return user_obj, True
425 425
426 if cookievalue is None: 426 if cookievalue is None: