Expire the previous JWT on update if HTTP root is set

* Required for Tautulli/Tautulli-Issues#255
This commit is contained in:
JonnyWong16 2020-06-24 14:04:07 -07:00
parent ff887d9948
commit 48f846da40
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 13 additions and 3 deletions

View file

@ -943,4 +943,10 @@ class Config(object):
if plexpy.DOCKER:
self.PLEXPY_AUTO_UPDATE = 0
self.CONFIG_VERSION == 15
self.CONFIG_VERSION = 15
if self.CONFIG_VERSION == 15:
if self.HTTP_ROOT and self.HTTP_ROOT != '/':
self.JWT_UPDATE_SECRET = True
self.CONFIG_VERSION = 16