mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 05:13:21 -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
|
@ -217,15 +217,10 @@ def initialize(config_file):
|
|||
CONFIG.write()
|
||||
|
||||
# Check if Tautulli has a jwt_secret
|
||||
if CONFIG.JWT_SECRET == '' or not CONFIG.JWT_SECRET:
|
||||
if CONFIG.JWT_SECRET == '' or not CONFIG.JWT_SECRET or CONFIG.JWT_UPDATE_SECRET:
|
||||
logger.debug(u"Generating JWT secret...")
|
||||
CONFIG.JWT_SECRET = generate_uuid()
|
||||
CONFIG.write()
|
||||
|
||||
if CONFIG.JWT_UUID == '' or CONFIG.JWT_UPDATE_UUID:
|
||||
logger.debug(u"Generating JWT UUID...")
|
||||
CONFIG.JWT_UUID = generate_uuid()
|
||||
CONFIG.JWT_UPDATE_UUID = False
|
||||
CONFIG.JWT_UPDATE_SECRET = False
|
||||
CONFIG.write()
|
||||
|
||||
# Get the previous version from the file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue