From d7a537267e8bf5631e29ed97218e213da88f3490 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 30 Jun 2023 13:33:14 +0200 Subject: Implement basic handler for failed SASL auth Writing to the log is still better than doing nothing ... --- xmpp/sasl.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmpp/sasl.go') diff --git a/xmpp/sasl.go b/xmpp/sasl.go index 23e8f3f..512fd58 100644 --- a/xmpp/sasl.go +++ b/xmpp/sasl.go @@ -68,3 +68,7 @@ func hasSaslPlain(e []xml.Token) bool { func saslSuccessHandler(s *session, e []xml.Token) { runStreamPair(s) } + +func saslFailureHandler(s *session, e []xml.Token) { + log.Println("SASL autentication failed!") +} -- cgit v1.2.3-70-g09d2