Commit eca07b18 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Modified failure condition to use not-authorized.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2799 b35dd754-fafc-0310-a699-88a17e54d16e
parent c99cafae
......@@ -274,8 +274,9 @@ public class SASLAuthentication {
private void authenticationFailed() {
StringBuilder reply = new StringBuilder();
reply.append("<failure xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
reply.append("<temporary-auth-failure/></failure>");
reply.append("<not-authorized/></failure>");
connection.deliverRawText(reply.toString());
// TODO Give a number of retries before closing the connection
// Close the connection
connection.close();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment