mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Small session lookup tweak during auth check
This commit is contained in:
parent
1d34b4cab4
commit
5dc0177211
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user