Commit 4e67d3b6 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Include default admin account when none was specified. JM-1534

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11006 b35dd754-fafc-0310-a699-88a17e54d16e
parent 39a15ea1
......@@ -10,9 +10,9 @@
*/
package org.jivesoftware.openfire.admin;
import org.xmpp.packet.JID;
import org.jivesoftware.util.*;
import org.jivesoftware.openfire.XMPPServer;
import org.jivesoftware.util.*;
import org.xmpp.packet.JID;
import java.util.*;
......@@ -84,6 +84,11 @@ public class DefaultAdminProvider implements AdminProvider {
}
}
if (adminList.isEmpty()) {
// Add default admin account when none was specified
adminList.add(new JID("admin", XMPPServer.getInstance().getServerInfo().getXMPPDomain(), null, true));
}
return adminList;
}
......
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