Commit 80189033 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Modified login URL when not running in standalone mode.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1644 b35dd754-fafc-0310-a699-88a17e54d16e
parent bdb97f4d
......@@ -12,7 +12,8 @@
java.util.Map,
java.util.Iterator,
org.jivesoftware.messenger.ConnectionManager,
org.jivesoftware.database.DbConnectionManager"
org.jivesoftware.database.DbConnectionManager,
org.jivesoftware.messenger.XMPPServer"
%>
<%
......@@ -55,10 +56,18 @@
</li>
<li>
<%
String server = request.getServerName();
String port = JiveGlobals.getXMLProperty("adminConsole.port");
String url = null;
if (XMPPServer.getInstance().isStandAlone()) {
String server = request.getServerName();
String port = JiveGlobals.getXMLProperty("adminConsole.port");
url = "http://" + server + ":" + port + "/login.jsp?username=admin";
}
else {
url = request.getRequestURL().toString();
url = url.replace("setup-finished.jsp", "login.jsp?username=admin");
}
%>
<a href="http://<%= server %>:<%= port %>/login.jsp?username=admin"><fmt:message key="setup.finished.login" /></a>.
<a href="<%= url %>"><fmt:message key="setup.finished.login" /></a>.
</li>
</ol>
......
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