forget password if it's wrong and we don't want to save it. Fixes #5862
This commit is contained in:
parent
d16a059168
commit
d90e153477
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue