From fa8c53e0971a6f3d7b207ecd2d4f5a54d8c9baf7 Mon Sep 17 00:00:00 2001 From: Madhur Garg Date: Sat, 16 Mar 2019 06:30:43 +0530 Subject: Hides the value of 'password' field being displayed in the InfoTab. Fixes #3426 --- poezio/config.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'poezio/config.py') diff --git a/poezio/config.py b/poezio/config.py index d5a81c0e..19069ddb 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -447,6 +447,8 @@ class Config(RawConfigParser): RawConfigParser.set(self, section, option, value) if not self.write_in_file(section, option, value): return ('Unable to write in the config file', 'Error') + if 'password' in option and 'eval_password' not in option: + value = '*'*len(value) return ("%s=%s" % (option, value), 'Info') def remove_and_save(self, option: str, -- cgit v1.2.3