failed_auth data returned

Manual updated
This commit is contained in:
Anton Ryzhov 2013-03-28 22:41:00 +04:00
parent 020197718f
commit 481971928c
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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