diff options
author | MW | 2007-06-22 18:28:49 +0000 |
---|---|---|
committer | MW | 2007-06-22 18:28:49 +0000 |
commit | a9dde515ba7d35b6069a3b2cd8b66bb72b007801 (patch) | |
tree | 5c219b4f52c2a58d0ac507b90556afc2a6848f94 /OpenGridServices | |
parent | * Porting console fix from Trunk to Sugilite (diff) | |
download | opensim-SC_OLD-a9dde515ba7d35b6069a3b2cd8b66bb72b007801.zip opensim-SC_OLD-a9dde515ba7d35b6069a3b2cd8b66bb72b007801.tar.gz opensim-SC_OLD-a9dde515ba7d35b6069a3b2cd8b66bb72b007801.tar.bz2 opensim-SC_OLD-a9dde515ba7d35b6069a3b2cd8b66bb72b007801.tar.xz |
SandBox mode login now shares a base class with the grid mode user server.
To allow people to login without creating accounts first in sandbox mode anytime a login request is received without a matching account already being in the database, a new account will be made. (also in sandbox mode, passwords aren't currently used).
Diffstat (limited to 'OpenGridServices')
-rw-r--r-- | OpenGridServices/OpenGridServices.UserServer/UserManager.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs index 6f5f054..14e330b 100644 --- a/OpenGridServices/OpenGridServices.UserServer/UserManager.cs +++ b/OpenGridServices/OpenGridServices.UserServer/UserManager.cs | |||
@@ -55,7 +55,7 @@ namespace OpenGridServices.UserServer | |||
55 | /// </summary> | 55 | /// </summary> |
56 | /// <param name="response">The existing response</param> | 56 | /// <param name="response">The existing response</param> |
57 | /// <param name="theUser">The user profile</param> | 57 | /// <param name="theUser">The user profile</param> |
58 | public override void CustomiseResponse(ref Hashtable response, ref UserProfileData theUser) | 58 | public override void CustomiseResponse(ref LoginResponse response, ref UserProfileData theUser) |
59 | { | 59 | { |
60 | // Load information from the gridserver | 60 | // Load information from the gridserver |
61 | SimProfile SimInfo = new SimProfile(); | 61 | SimProfile SimInfo = new SimProfile(); |
@@ -63,15 +63,15 @@ namespace OpenGridServices.UserServer | |||
63 | 63 | ||
64 | // Customise the response | 64 | // Customise the response |
65 | // Home Location | 65 | // Home Location |
66 | response["home"] = "{'region_handle':[r" + (SimInfo.RegionLocX * 256).ToString() + ",r" + (SimInfo.RegionLocY * 256).ToString() + "], " + | 66 | response.Home = "{'region_handle':[r" + (SimInfo.RegionLocX * 256).ToString() + ",r" + (SimInfo.RegionLocY * 256).ToString() + "], " + |
67 | "'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " + | 67 | "'position':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "], " + |
68 | "'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; | 68 | "'look_at':[r" + theUser.homeLocation.X.ToString() + ",r" + theUser.homeLocation.Y.ToString() + ",r" + theUser.homeLocation.Z.ToString() + "]}"; |
69 | 69 | ||
70 | // Destination | 70 | // Destination |
71 | response["sim_ip"] = SimInfo.sim_ip; | 71 | response.SimAddress = SimInfo.sim_ip; |
72 | response["sim_port"] = (Int32)SimInfo.sim_port; | 72 | response.SimPort = (Int32)SimInfo.sim_port; |
73 | response["region_y"] = (Int32)SimInfo.RegionLocY * 256; | 73 | response.RegionX = SimInfo.RegionLocY ; |
74 | response["region_x"] = (Int32)SimInfo.RegionLocX * 256; | 74 | response.RegionY = SimInfo.RegionLocX ; |
75 | 75 | ||
76 | // Notify the target of an incoming user | 76 | // Notify the target of an incoming user |
77 | Console.WriteLine("Notifying " + SimInfo.regionname + " (" + SimInfo.caps_url + ")"); | 77 | Console.WriteLine("Notifying " + SimInfo.regionname + " (" + SimInfo.caps_url + ")"); |
@@ -83,7 +83,7 @@ namespace OpenGridServices.UserServer | |||
83 | SimParams["firstname"] = theUser.username; | 83 | SimParams["firstname"] = theUser.username; |
84 | SimParams["lastname"] = theUser.surname; | 84 | SimParams["lastname"] = theUser.surname; |
85 | SimParams["agent_id"] = theUser.UUID.ToString(); | 85 | SimParams["agent_id"] = theUser.UUID.ToString(); |
86 | SimParams["circuit_code"] = (Int32)Convert.ToUInt32(response["circuit_code"]); | 86 | SimParams["circuit_code"] = (Int32)Convert.ToUInt32(response.CircuitCode); |
87 | SimParams["startpos_x"] = theUser.currentAgent.currentPos.X.ToString(); | 87 | SimParams["startpos_x"] = theUser.currentAgent.currentPos.X.ToString(); |
88 | SimParams["startpos_y"] = theUser.currentAgent.currentPos.Y.ToString(); | 88 | SimParams["startpos_y"] = theUser.currentAgent.currentPos.Y.ToString(); |
89 | SimParams["startpos_z"] = theUser.currentAgent.currentPos.Z.ToString(); | 89 | SimParams["startpos_z"] = theUser.currentAgent.currentPos.Z.ToString(); |