summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/event_index.rst2
-rw-r--r--sleekxmpp/features/feature_mechanisms/mechanisms.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/event_index.rst b/docs/event_index.rst
index 1257fcd1..ee8f5a95 100644
--- a/docs/event_index.rst
+++ b/docs/event_index.rst
@@ -12,7 +12,7 @@ Event Index
has not yet been established.
connection_failed
- - **Data:** ``{}``
+ - **Data:** ``{}`` or ``Failure Stanza`` if available
- **Source:** :py:class:`~sleekxmpp.xmlstream.XMLstream`
Signal that a connection can not be established after number of attempts.
diff --git a/sleekxmpp/features/feature_mechanisms/mechanisms.py b/sleekxmpp/features/feature_mechanisms/mechanisms.py
index 2ed3e00b..58ed9b91 100644
--- a/sleekxmpp/features/feature_mechanisms/mechanisms.py
+++ b/sleekxmpp/features/feature_mechanisms/mechanisms.py
@@ -235,6 +235,6 @@ class FeatureMechanisms(BasePlugin):
"""SASL authentication failed. Disconnect and shutdown."""
self.attempted_mechs.add(self.mech.name)
log.info("Authentication failed: %s", stanza['condition'])
- self.xmpp.event("failed_auth", direct=True)
+ self.xmpp.event("failed_auth", stanza, direct=True)
self._send_auth()
return True