Update JWT secret instead of UUID

This commit is contained in:
JonnyWong16 2019-08-24 22:00:31 -07:00
parent 7498617b74
commit 0ffc8c5d19
4 changed files with 9 additions and 21 deletions

View file

@ -53,7 +53,6 @@ import pmsconnect
import users
import versioncheck
import web_socket
import webauth
from plexpy.api2 import API2
from plexpy.helpers import checked, addtoapi, get_ip, create_https_certificates, build_datatables_json, sanitize_out
from plexpy.session import get_session_info, get_session_user_id, allow_session_user, allow_session_library
@ -2857,14 +2856,14 @@ class WebInterface(object):
kwargs['http_password'] = plexpy.CONFIG.HTTP_PASSWORD
# Flag to refresh JWT uuid to log out clients
kwargs['jwt_update_uuid'] = True
kwargs['jwt_update_secret'] = True
elif kwargs['http_password'] and kwargs.get('http_hash_password'):
kwargs['http_password'] = make_hash(kwargs['http_password'])
kwargs['http_hashed_password'] = 1
# Flag to refresh JWT uuid to log out clients
kwargs['jwt_update_uuid'] = True
kwargs['jwt_update_secret'] = True
elif not kwargs.get('http_hash_password'):
kwargs['http_hashed_password'] = 0