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

This commit is contained in:
Yann Leboulanger 2006-09-20 06:56:18 +00:00
parent 1ed3a31f40
commit 23109aac2b
1 changed files with 4 additions and 3 deletions

View File

@ -2923,9 +2923,6 @@ _('You can set advanced account options by pressing Advanced button, or later by
con = connection.Connection(self.account) con = connection.Connection(self.account)
con.password = password con.password = password
if not savepass:
password = ""
config = {} config = {}
config['name'] = login config['name'] = login
config['hostname'] = server 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): def create_vars(self, config):
gajim.config.add_per('accounts', self.account) gajim.config.add_per('accounts', self.account)
if not config['savepass']:
config['password'] = ''
for opt in config: for opt in config:
gajim.config.set_per('accounts', self.account, opt, config[opt]) gajim.config.set_per('accounts', self.account, opt, config[opt])