Don't allow apikey when using an app
This commit is contained in:
@@ -136,7 +136,7 @@ class API2(object):
|
|||||||
self._api_app = True
|
self._api_app = True
|
||||||
|
|
||||||
if plexpy.CONFIG.API_ENABLED and not self._api_msg or self._api_cmd in ('get_apikey', 'docs', 'docs_md'):
|
if plexpy.CONFIG.API_ENABLED and not self._api_msg or self._api_cmd in ('get_apikey', 'docs', 'docs_md'):
|
||||||
if self._api_apikey == plexpy.CONFIG.API_KEY:
|
if not self._api_app and self._api_apikey == plexpy.CONFIG.API_KEY:
|
||||||
self._api_authenticated = True
|
self._api_authenticated = True
|
||||||
|
|
||||||
elif self._api_app and self._api_apikey == mobile_app.get_temp_device_token() and \
|
elif self._api_app and self._api_apikey == mobile_app.get_temp_device_token() and \
|
||||||
|
Reference in New Issue
Block a user