diff options
Diffstat (limited to 'xmpp/sasl.go')
-rw-r--r-- | xmpp/sasl.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmpp/sasl.go b/xmpp/sasl.go index cbc1f11..91cbf6b 100644 --- a/xmpp/sasl.go +++ b/xmpp/sasl.go @@ -48,3 +48,12 @@ func sendSaslAuth(b []xml.Token, c *Conn) error { return errors.New("No compatible SASL mechanism given") } + +func onSaslSuccess(b []xml.Token, c *Conn) error { + sendStreamStart(&c.enc, c.jid) + return nil +} + +func onSaslFailure(b []xml.Token, c *Conn) error { + return errors.New("Authentication failed") +} |