Add auth_success event.
The auth_success event is triggered upon successful SASL negotiation.
This commit is contained in:
parent
f5beac2afa
commit
7842c55da3
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue