Commit d743894d authored by Matt Tucker's avatar Matt Tucker Committed by matt

Make anonymous auth changes work without restart (JM-933).

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6660 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4500a1db
......@@ -272,7 +272,7 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo {
public void setAllowAnonymous(boolean isAnonymous) throws UnauthorizedException {
anonymousAllowed = isAnonymous;
JiveGlobals.setProperty("xmpp.auth.anonymous", anonymousAllowed ? "true" : "false");
JiveGlobals.setProperty("xmpp.auth.anonymous", Boolean.toString(anonymousAllowed));
}
public void initialize(XMPPServer server) {
......
......@@ -19,6 +19,7 @@
<%@ page import="java.util.Map"%>
<%@ page import="java.util.StringTokenizer"%>
<%@ page import="java.util.regex.Pattern"%>
<%@ page import="org.jivesoftware.wildfire.XMPPServer" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
......@@ -39,8 +40,8 @@
String allowedIPs = request.getParameter("allowedIPs");
// Get an IQRegisterHandler:
IQRegisterHandler regHandler = new IQRegisterHandler();
IQAuthHandler authHandler = new IQAuthHandler();
IQRegisterHandler regHandler = XMPPServer.getInstance().getIQRegisterHandler();
IQAuthHandler authHandler = XMPPServer.getInstance().getIQAuthHandler();
if (save) {
regHandler.setInbandRegEnabled(inbandEnabled);
......
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