Remove ability to login using Plex username / password.

* Only login using Plex OAuth
This commit is contained in:
JonnyWong16 2020-06-02 17:28:24 -07:00
parent 48203e64a9
commit d0f28883aa
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -141,7 +141,7 @@ def check_credentials(username=None, password=None, token=None, admin_login='0',
return True, user_details, 'admin' return True, user_details, 'admin'
if plexpy.CONFIG.HTTP_PLEX_ADMIN or (not admin_login == '1' and plexpy.CONFIG.ALLOW_GUEST_ACCESS): if plexpy.CONFIG.HTTP_PLEX_ADMIN or (not admin_login == '1' and plexpy.CONFIG.ALLOW_GUEST_ACCESS):
plex_login = plex_user_login(username=username, password=password, token=token, headers=headers) plex_login = plex_user_login(token=token, headers=headers)
if plex_login is not None: if plex_login is not None:
return True, plex_login[0], plex_login[1] return True, plex_login[0], plex_login[1]