Flag update JWT UUID after restarting

This commit is contained in:
JonnyWong16 2019-08-24 21:13:39 -07:00
parent f21d505ab8
commit 7498617b74
4 changed files with 15 additions and 15 deletions

View file

@ -2856,15 +2856,15 @@ class WebInterface(object):
else:
kwargs['http_password'] = plexpy.CONFIG.HTTP_PASSWORD
# Refresh JWT uuid to log out clients
webauth.jwt_uuid(refresh=True)
# Flag to refresh JWT uuid to log out clients
kwargs['jwt_update_uuid'] = True
elif kwargs['http_password'] and kwargs.get('http_hash_password'):
kwargs['http_password'] = make_hash(kwargs['http_password'])
kwargs['http_hashed_password'] = 1
# Refresh JWT uuid to log out clients
webauth.jwt_uuid(refresh=True)
# Flag to refresh JWT uuid to log out clients
kwargs['jwt_update_uuid'] = True
elif not kwargs.get('http_hash_password'):
kwargs['http_hashed_password'] = 0