Commit 37185cfa authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed problem with uppercase letters in username. JM-760

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4285 b35dd754-fafc-0310-a699-88a17e54d16e
parent 75be9d75
...@@ -932,7 +932,6 @@ public class SessionManager extends BasicModule { ...@@ -932,7 +932,6 @@ public class SessionManager extends BasicModule {
} }
else { else {
// Check if there is a session for a registered user // Check if there is a session for a registered user
username = username.toLowerCase();
Session session = null; Session session = null;
SessionMap sessionMap = sessions.get(username); SessionMap sessionMap = sessions.get(username);
if (sessionMap != null) { if (sessionMap != null) {
......
...@@ -180,7 +180,7 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo { ...@@ -180,7 +180,7 @@ public class IQAuthHandler extends IQHandler implements IQAuthInfo {
response.setChildElement(packet.getChildElement().createCopy()); response.setChildElement(packet.getChildElement().createCopy());
response.setError(PacketError.Condition.not_acceptable); response.setError(PacketError.Condition.not_acceptable);
} }
username = username.toLowerCase();
// If a session already exists with the requested JID, then check to see // If a session already exists with the requested JID, then check to see
// if we should kick it off or refuse the new connection // if we should kick it off or refuse the new connection
if (sessionManager.isActiveRoute(username, resource)) { if (sessionManager.isActiveRoute(username, resource)) {
......
...@@ -91,7 +91,7 @@ public class IQBindHandler extends IQHandler { ...@@ -91,7 +91,7 @@ public class IQBindHandler extends IQHandler {
session.setAnonymousAuth(); session.setAnonymousAuth();
} }
else { else {
String username = authToken.getUsername(); String username = authToken.getUsername().toLowerCase();
// If a session already exists with the requested JID, then check to see // If a session already exists with the requested JID, then check to see
// if we should kick it off or refuse the new connection // if we should kick it off or refuse the new connection
if (sessionManager.isActiveRoute(username, resource)) { if (sessionManager.isActiveRoute(username, resource)) {
......
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