From d90e153477d846506e234085e3abdd667f6c1b06 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 23 Aug 2010 10:04:19 +0200 Subject: [PATCH] forget password if it's wrong and we don't want to save it. Fixes #5862 --- src/common/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index 0551b8d27..7c77e6f2c 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1320,6 +1320,9 @@ class Connection(CommonConnection, ConnectionHandlers): self.on_connect_auth(con) self.on_connect_auth = None else: + if not gajim.config.get_per('accounts', self.name, 'savepass'): + # 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')