mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-12 03:18:47 +00:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ class MenuBar(component.Component):
|
||||||
account_to_log = {}
|
account_to_log = {}
|
||||||
for key, value in account.copy().items():
|
for key, value in account.copy().items():
|
||||||
if key == 'password':
|
if key == 'password':
|
||||||
value = '*' * len(value)
|
value = '*' * 10
|
||||||
account_to_log[key] = value
|
account_to_log[key] = value
|
||||||
known_accounts_to_log.append(account_to_log)
|
known_accounts_to_log.append(account_to_log)
|
||||||
log.debug('_on_known_accounts: %s', known_accounts_to_log)
|
log.debug('_on_known_accounts: %s', known_accounts_to_log)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue