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

SessionManager no longer sets the address of anonymous sessions.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@767 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8e3a0b3d
......@@ -22,9 +22,7 @@ import org.jivesoftware.messenger.user.UserNotFoundException;
import org.xmpp.packet.JID;
import org.xmpp.packet.Presence;
import org.xmpp.packet.Packet;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* In-memory implementation of a session.
......@@ -108,25 +106,13 @@ public class SessionImpl implements Session {
address = new JID(user.getUsername(), serverName, resource);
authToken = auth;
List params = new ArrayList();
params.add(address.toBareJID());
params.add(getConnection().toString());
// Log.info(LocaleUtils.getLocalizedString("admin.authenticated",params));
sessionManager.addSession(this);
setStatus(Session.STATUS_AUTHENTICATED);
}
public void setAnonymousAuth() {
address = new JID("", serverName, "");
// Registering with the session manager assigns the resource
sessionManager.addAnonymousSession(this);
setStatus(Session.STATUS_AUTHENTICATED);
List params = new ArrayList();
params.add(address.toString());
params.add(getConnection().toString());
// Log.info(LocaleUtils.getLocalizedString("admin.authenticated",params));
}
public AuthToken getAuthToken() {
......
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