mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Blacklist password parameter in get_apikey command
This commit is contained in:
parent
b4ba88b3e5
commit
50b6f9a8f2
1 changed files with 5 additions and 1 deletions
|
@ -715,12 +715,16 @@ General optional parameters:
|
|||
""" handles the stuff from the handler """
|
||||
|
||||
# Make sure the device ID is not shown in the logs
|
||||
if self._api_cmd == 'register_device':
|
||||
if kwargs.get('cmd') == 'register_device':
|
||||
if kwargs.get('device_id'):
|
||||
logger._BLACKLIST_WORDS.add(kwargs['device_id'])
|
||||
if kwargs.get('onesignal_id'):
|
||||
logger._BLACKLIST_WORDS.add(kwargs['onesignal_id'])
|
||||
|
||||
elif kwargs.get('cmd') == 'get_apikey':
|
||||
if kwargs.get('password'):
|
||||
logger._BLACKLIST_WORDS.add(kwargs['password'])
|
||||
|
||||
result = {}
|
||||
logger.api_debug('Tautulli APIv2 :: API called with kwargs: %s' % kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue