Small session lookup tweak during auth check

This commit is contained in:
Seth House 2013-08-02 11:38:50 -06:00
parent 1d34b4cab4
commit 5dc0177211

View File

@ -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