From c39b4f6bf147aca788dc02832a985700b6e4eba9 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 22 May 2023 21:22:32 +0200 Subject: Act on SASL server response --- xmpp/routing.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmpp/routing.go') diff --git a/xmpp/routing.go b/xmpp/routing.go index 48c9763..9199874 100644 --- a/xmpp/routing.go +++ b/xmpp/routing.go @@ -65,6 +65,8 @@ func (r *tokenRouter) route(t xml.Token, c *Conn) error { func routeElement(b []xml.Token, c *Conn) error { tab := elementRoutingTable{ {xml.Name{"http://etherx.jabber.org/streams", "features"}, streamFeatures}, + {xml.Name{"urn:ietf:params:xml:ns:xmpp-sasl", "success"}, onSaslSuccess}, + {xml.Name{"urn:ietf:params:xml:ns:xmpp-sasl", "failure"}, onSaslFailure}, } switch unwrapped := b[0].(type) { -- cgit v1.2.3-70-g09d2