Report information that will allow us to disambiguate world, game and party

auths.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5627 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2009-01-10 18:46:31 +00:00
parent a34f1592f4
commit 84b0a6b413
@@ -369,16 +369,18 @@ public class ClientManager
{
Credentials creds = req.getCredentials();
Name username = creds.getUsername();
String type = username.getClass().getName();
type = type.substring(type.lastIndexOf(".")+1);
// see if a client is already registered with these credentials
PresentsSession client = getClient(username);
if (client != null) {
log.info("Resuming session [username=" + username + ", conn=" + conn + "].");
log.info("Resuming session", "type", type, "who", username, "conn", conn);
client.resumeSession(req, conn);
} else {
log.info("Session initiated [username=" + username + ", conn=" + conn + "].");
log.info("Session initiated", "who", username, "conn", conn);
// create a new client and stick'em in the table
client = _injector.getInstance(_factory.getSessionClass(req));
client.startSession(req, conn, rsp.authdata);