Commit b50e2f16 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[GATE-48] Fixed to not actually acknowledge fake password in registration dialog.

[GATE-57] Ignoring blank messages.  (though they will be used for other things later)

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk/src/plugins/gateway@5485 b35dd754-fafc-0310-a699-88a17e54d16e
parent b0b3c920
......@@ -162,7 +162,9 @@ public abstract class BaseTransport implements Component, RosterEventListener, P
// Message to gateway itself. Throw away for now.
try {
TransportSession session = sessionManager.getSession(from);
session.sendServerMessage(packet.getBody());
if (packet.getBody() != null) {
session.sendServerMessage(packet.getBody());
}
}
catch (NotFoundException e) {
// TODO: Should return an error packet here
......@@ -172,7 +174,9 @@ public abstract class BaseTransport implements Component, RosterEventListener, P
else {
try {
TransportSession session = sessionManager.getSession(from);
session.sendMessage(to, packet.getBody());
if (packet.getBody() != null) {
session.sendMessage(to, packet.getBody());
}
}
catch (NotFoundException e) {
// TODO: Should return an error packet here
......
......@@ -60,7 +60,9 @@
try {
Registration reg = new Registration(regId);
reg.setUsername(ParamUtils.getParameter(request, "gatewayUsername"));
reg.setPassword(ParamUtils.getParameter(request, "gatewayPassword"));
if (!ParamUtils.getParameter(request, "gatewayPassword").equals("********")) {
reg.setPassword(ParamUtils.getParameter(request, "gatewayPassword"));
}
reg.setNickname(ParamUtils.getParameter(request, "gatewayNickname"));
response.sendRedirect("gateway-registrations.jsp?success=true");
return;
......@@ -468,7 +470,7 @@
<strong><fmt:message key="gateway.web.registrations.username" /></strong>
</div>
<div class="jive-registrations-editPassword">
<input type="password" name="gatewayPassword" size="12" maxlength="50" value="*********"><br>
<input type="password" name="gatewayPassword" size="12" maxlength="50" value="********"><br>
<strong><fmt:message key="gateway.web.registrations.password" /></strong>
</div>
<div class="jive-registrations-editNickname">
......
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