Fix Tautulli logging out after saving settings and restarting

This commit is contained in:
JonnyWong16 2019-09-19 19:37:31 -07:00
parent 7085042b0d
commit ec8aae9122

View file

@ -2857,9 +2857,6 @@ class WebInterface(object):
else: else:
kwargs['http_password'] = plexpy.CONFIG.HTTP_PASSWORD kwargs['http_password'] = plexpy.CONFIG.HTTP_PASSWORD
# Flag to refresh JWT uuid to log out clients
kwargs['jwt_update_secret'] = True
elif kwargs['http_password'] and kwargs.get('http_hash_password'): elif kwargs['http_password'] and kwargs.get('http_hash_password'):
kwargs['http_password'] = make_hash(kwargs['http_password']) kwargs['http_password'] = make_hash(kwargs['http_password'])
kwargs['http_hashed_password'] = 1 kwargs['http_hashed_password'] = 1
@ -2869,6 +2866,10 @@ class WebInterface(object):
elif not kwargs.get('http_hash_password'): elif not kwargs.get('http_hash_password'):
kwargs['http_hashed_password'] = 0 kwargs['http_hashed_password'] = 0
# Flag to refresh JWT uuid to log out clients
kwargs['jwt_update_secret'] = True
else: else:
kwargs['http_hashed_password'] = 0 kwargs['http_hashed_password'] = 0