Commit 2fd71cd6 authored by louiz’'s avatar louiz’

Display “authentication failed” only when all auth methods failed

parent 6f7ac5a4
......@@ -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
......
......@@ -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
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment