From 26ed4433b47974c0583811fc2dc6f5825e6d1b88 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 23 Jan 2009 17:27:21 +0000 Subject: [PATCH] prevent in GUI when login / password is wrong, even if there is an unknown mechnism. see #4672 --- src/common/xmpp/auth_nb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/xmpp/auth_nb.py b/src/common/xmpp/auth_nb.py index 359542039..db4b972cc 100644 --- a/src/common/xmpp/auth_nb.py +++ b/src/common/xmpp/auth_nb.py @@ -222,6 +222,8 @@ class SASL(PlugIn): else: self.startsasl = SASL_FAILURE log.error('I can only use DIGEST-MD5, GSSAPI and PLAIN mecanisms.') + if self.on_sasl: + self.on_sasl() return self.startsasl = SASL_IN_PROCESS self._owner.send(str(node))