Redact some passwords in plugins

This commit is contained in:
Adrian Sampson 2015-03-27 22:42:28 -04:00
parent b621fd439b
commit 07516b2bca
3 changed files with 3 additions and 0 deletions

View file

@ -1153,6 +1153,7 @@ class BPDPlugin(BeetsPlugin):
'password': u'',
'volume': VOLUME_MAX,
})
self.config['password'].redact = True
def start_bpd(self, lib, host, port, password, volume, debug):
"""Starts a BPD server."""

View file

@ -329,6 +329,7 @@ class MPDStatsPlugin(plugins.BeetsPlugin):
'port': 6600,
'password': u'',
})
mpd_config['password'].redact = True
def commands(self):
cmd = ui.Subcommand(

View file

@ -71,6 +71,7 @@ class MPDUpdatePlugin(BeetsPlugin):
'port': 6600,
'password': u'',
})
config['mpd']['password'].redact = True
# For backwards compatibility, use any values from the
# plugin-specific "mpdupdate" section.