[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:
DjLegolas 2022-01-22 21:23:40 +02:00 committed by Calum Lind
parent e75ef7e31f
commit 7c9a542006
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 1 additions and 1 deletions

View File

@ -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)