Add auth_success event.

The auth_success event is triggered upon successful SASL negotiation.
This commit is contained in:
Lance Stout 2012-05-15 14:26:25 -07:00
parent f5beac2afa
commit 7842c55da3

View file

@ -159,6 +159,7 @@ class FeatureMechanisms(BasePlugin):
self.attempted_mechs = set()
self.xmpp.authenticated = True
self.xmpp.features.add('mechanisms')
self.xmpp.event('auth_success', stanza, direct=True)
raise RestartStream()
def _handle_fail(self, stanza):