summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-08-01 03:15:39 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-08-01 03:15:39 +0200
commit2fd71cd6374d02d8e67faa0e87fb943c4c72011a (patch)
tree1fd8352ddfb23859ac89bd74ee38dee07de4dcb1 /src
parent6f7ac5a4a66c81fce9451a7bd1645fe3161848f6 (diff)
downloadpoezio-2fd71cd6374d02d8e67faa0e87fb943c4c72011a.tar.gz
poezio-2fd71cd6374d02d8e67faa0e87fb943c4c72011a.tar.bz2
poezio-2fd71cd6374d02d8e67faa0e87fb943c4c72011a.tar.xz
poezio-2fd71cd6374d02d8e67faa0e87fb943c4c72011a.zip
Display “authentication failed” only when all auth methods failed
Diffstat (limited to 'src')
-rw-r--r--src/core/core.py4
-rw-r--r--src/core/handlers.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core.py b/src/core/core.py
index b2951aea..63367c7f 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -193,7 +193,7 @@ class Core(object):
self.xmpp.add_event_handler('connected', self.on_connected)
self.xmpp.add_event_handler('connection_failed', self.on_failed_connection)
self.xmpp.add_event_handler('disconnected', self.on_disconnected)
- self.xmpp.add_event_handler('failed_auth', self.on_failed_auth)
+ self.xmpp.add_event_handler('failed_all_auth', self.on_failed_all_auth)
self.xmpp.add_event_handler('no_auth', self.on_no_auth)
self.xmpp.add_event_handler("session_start", self.on_session_start)
self.xmpp.add_event_handler("session_start",
@@ -1897,7 +1897,7 @@ class Core(object):
on_groupchat_presence = handlers.on_groupchat_presence
on_failed_connection = handlers.on_failed_connection
on_disconnected = handlers.on_disconnected
- on_failed_auth = handlers.on_failed_auth
+ on_failed_all_auth = handlers.on_failed_all_auth
on_no_auth = handlers.on_no_auth
on_connected = handlers.on_connected
on_session_start = handlers.on_session_start
diff --git a/src/core/handlers.py b/src/core/handlers.py
index 2dd31abd..39c37e8f 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -829,7 +829,7 @@ def on_disconnected(self, event):
tab.disconnect()
self.information(_("Disconnected from server."), _('Error'))
-def on_failed_auth(self, event):
+def on_failed_all_auth(self, event):
"""
Authentication failed
"""