diff options
author | xengineering <me@xengineering.eu> | 2023-06-30 13:33:14 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-06-30 13:33:14 +0200 |
commit | d7a537267e8bf5631e29ed97218e213da88f3490 (patch) | |
tree | 1f34233fca18d934648b25004fdbff464722d622 /xmpp/sasl.go | |
parent | 6fd36e07a5d645295f34fcbab36cce5e08a9d84c (diff) | |
download | limox-d7a537267e8bf5631e29ed97218e213da88f3490.tar limox-d7a537267e8bf5631e29ed97218e213da88f3490.tar.zst limox-d7a537267e8bf5631e29ed97218e213da88f3490.zip |
Implement basic handler for failed SASL auth
Writing to the log is still better than doing nothing ...
Diffstat (limited to 'xmpp/sasl.go')
-rw-r--r-- | xmpp/sasl.go | 4 |
1 files changed, 4 insertions, 0 deletions
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!") +} |