[GTK] Hide account password length in log
We should not let anyone know the account's password length, as it can help to crack it. Instead, we will print a constant amount (10) of asterisks. Closes: https://github.com/deluge-torrent/deluge/pull/346
This commit is contained in:
parent
e75ef7e31f
commit
7c9a542006
|
@ -567,7 +567,7 @@ class MenuBar(component.Component):
|
|||
account_to_log = {}
|
||||
for key, value in account.copy().items():
|
||||
if key == 'password':
|
||||
value = '*' * len(value)
|
||||
value = '*' * 10
|
||||
account_to_log[key] = value
|
||||
known_accounts_to_log.append(account_to_log)
|
||||
log.debug('_on_known_accounts: %s', known_accounts_to_log)
|
||||
|
|
Loading…
Reference in New Issue