summaryrefslogtreecommitdiff
path: root/poezio/config.py
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-03-16 06:30:43 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-03-18 16:38:07 +0530
commitfa8c53e0971a6f3d7b207ecd2d4f5a54d8c9baf7 (patch)
tree37de330e8915f4b79751e2096c3615006948eed0 /poezio/config.py
parentf7e3e003a275add685eb32e2c6aea18e7a322c7f (diff)
downloadpoezio-fa8c53e0971a6f3d7b207ecd2d4f5a54d8c9baf7.tar.gz
poezio-fa8c53e0971a6f3d7b207ecd2d4f5a54d8c9baf7.tar.bz2
poezio-fa8c53e0971a6f3d7b207ecd2d4f5a54d8c9baf7.tar.xz
poezio-fa8c53e0971a6f3d7b207ecd2d4f5a54d8c9baf7.zip
Hides the value of 'password' field being displayed in the InfoTab. Fixes #3426
Diffstat (limited to 'poezio/config.py')
-rw-r--r--poezio/config.py2
1 files changed, 2 insertions, 0 deletions
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,