Skip to content
Snippets Groups Projects
Commit 23109aac authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

create account with password even if we don't save it. Fixes #2433

parent 1ed3a31f
No related branches found
No related tags found
No related merge requests found
......@@ -2923,9 +2923,6 @@ _('You can set advanced account options by pressing Advanced button, or later by
con = connection.Connection(self.account)
con.password = password
if not savepass:
password = ""
config = {}
config['name'] = login
config['hostname'] = server
......@@ -2954,6 +2951,10 @@ _('You can set advanced account options by pressing Advanced button, or later by
def create_vars(self, config):
gajim.config.add_per('accounts', self.account)
if not config['savepass']:
config['password'] = ''
for opt in config:
gajim.config.set_per('accounts', self.account, opt, config[opt])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment