From 5dc01772112458632dc2972cf66a75012c904fbb Mon Sep 17 00:00:00 2001 From: Seth House Date: Fri, 2 Aug 2013 11:38:50 -0600 Subject: [PATCH] Small session lookup tweak during auth check --- saltapi/netapi/rest_cherrypy/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saltapi/netapi/rest_cherrypy/app.py b/saltapi/netapi/rest_cherrypy/app.py index d86fe09b16..137399a7da 100644 --- a/saltapi/netapi/rest_cherrypy/app.py +++ b/saltapi/netapi/rest_cherrypy/app.py @@ -202,7 +202,7 @@ def salt_auth_tool(): Redirect all unauthenticated requests to the login page ''' # Redirect to the login page if the session hasn't been authed - if not cherrypy.session.get('token', None): + if not cherrypy.session.has_key('token'): raise cherrypy.InternalRedirect('/login') # Session is authenticated; inform caches