This commit is contained in:
JonnyWong16 2020-06-25 19:12:10 -07:00
parent 48f846da40
commit 88e23627fd
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -301,7 +301,7 @@ class AuthController(object):
cherrypy.response.cookie[jwt_cookie]['path'] = plexpy.HTTP_ROOT.rstrip('/') or '/' cherrypy.response.cookie[jwt_cookie]['path'] = plexpy.HTTP_ROOT.rstrip('/') or '/'
if plexpy.HTTP_ROOT != '/': if plexpy.HTTP_ROOT != '/':
# Aslo expire the JWT on the root path # Also expire the JWT on the root path
cherrypy.response.headers['Set-Cookie'] = jwt_cookie + '=""; expires=Thu, 01 Jan 1970 12:00:00 GMT; path=/' cherrypy.response.headers['Set-Cookie'] = jwt_cookie + '=""; expires=Thu, 01 Jan 1970 12:00:00 GMT; path=/'
cherrypy.request.login = None cherrypy.request.login = None