always forget password when it's wrong so it's re-asked to user. fixes #3343

This commit is contained in:
Yann Leboulanger 2007-08-20 10:26:51 +00:00
parent aefe6fd370
commit b2ea1fe5c2
1 changed files with 2 additions and 3 deletions

View File

@ -526,9 +526,8 @@ class Connection(ConnectionHandlers):
self.on_connect_auth(con)
self.on_connect_auth = None
else:
# Forget password if needed
if not gajim.config.get_per('accounts', self.name, 'savepass'):
self.password = None
# Forget password, it's wrong
self.password = None
gajim.log.debug("Couldn't authenticate to %s" % self._hostname)
self.disconnect(on_purpose = True)
self.dispatch('STATUS', 'offline')