1. tkadm30
  2. django-hotsauce

Commits

Comments (0)

Files changed (1)

File extras/blogengine/lib/blogengine/contrib/session/views.py Modified

View file
  • Ignore whitespace
  • Hide word diff
             log.debug('logout: deleted %s' % str(key))
     
     # sanity checks
-    rv = True
-    for key in (logout_func,):
-        if key in request.environ:
-            rv = request.environ[key]()
-            assert rv == None, 'fatal error deleting session!'
+    #rv = True
+    #for key in (logout_func,):
+    #    if key in request.environ:
+    #        rv = request.environ[key]()
+    #        assert rv == None, 'fatal error deleting session!'
 
     # Delete beaker cache session
     if session_key in request.environ:
         request.environ['paste.cookies'] = []
         log.debug('Paste cookies deleted!')
 
+    # Check for wsgi_oauth2
+    if 'wsgioauth2.session' in request.environ:
+        del request.environ['wsgioauth2.session']
+        log.debug("OAuth2 session deleted")
+
     return HTTPRedirectResponse(urlto)
 
 #@decorators.login_required