summaryrefslogtreecommitdiff
path: root/poezio/config.py
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2019-03-18 12:16:59 +0100
committerMaxime Buquet <pep@bouah.net>2019-03-18 12:16:59 +0100
commit1a5d0493da157ec5ac32a4cf1297f592b599fdd8 (patch)
tree07dc194cf3d3ab3c3bc3e131126f79199d2fe62f /poezio/config.py
parent60b935a27162557cd779c8698ff66914c76b5cf7 (diff)
parent614ea5423b4ca0c14de525e6b4cc03568d1a3eae (diff)
downloadpoezio-1a5d0493da157ec5ac32a4cf1297f592b599fdd8.tar.gz
poezio-1a5d0493da157ec5ac32a4cf1297f592b599fdd8.tar.bz2
poezio-1a5d0493da157ec5ac32a4cf1297f592b599fdd8.tar.xz
poezio-1a5d0493da157ec5ac32a4cf1297f592b599fdd8.zip
Merge branch 'set_password' into 'master'
Hide the value of 'password' field being displayed in the InfoTab. Fixes #3426 Closes #3426 See merge request poezio/poezio!24
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..89b75d94 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 = '********'
return ("%s=%s" % (option, value), 'Info')
def remove_and_save(self, option: str,