mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Update JWT secret instead of UUID
This commit is contained in:
parent
7498617b74
commit
0ffc8c5d19
4 changed files with 9 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue