aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/LLLoginService/LLLoginResponse.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginResponse.cs')
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginResponse.cs19
1 files changed, 18 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
index 400f303..da6c016 100644
--- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
@@ -55,6 +55,7 @@ namespace OpenSim.Services.LLLoginService
55 public static LLFailedLoginResponse InventoryProblem; 55 public static LLFailedLoginResponse InventoryProblem;
56 public static LLFailedLoginResponse DeadRegionProblem; 56 public static LLFailedLoginResponse DeadRegionProblem;
57 public static LLFailedLoginResponse LoginBlockedProblem; 57 public static LLFailedLoginResponse LoginBlockedProblem;
58 public static LLFailedLoginResponse UnverifiedAccountProblem;
58 public static LLFailedLoginResponse AlreadyLoggedInProblem; 59 public static LLFailedLoginResponse AlreadyLoggedInProblem;
59 public static LLFailedLoginResponse InternalError; 60 public static LLFailedLoginResponse InternalError;
60 61
@@ -75,6 +76,10 @@ namespace OpenSim.Services.LLLoginService
75 LoginBlockedProblem = new LLFailedLoginResponse("presence", 76 LoginBlockedProblem = new LLFailedLoginResponse("presence",
76 "Logins are currently restricted. Please try again later.", 77 "Logins are currently restricted. Please try again later.",
77 "false"); 78 "false");
79 UnverifiedAccountProblem = new LLFailedLoginResponse("presence",
80 "Your account has not yet been verified. Please check " +
81 "your email and click the provided link.",
82 "false");
78 AlreadyLoggedInProblem = new LLFailedLoginResponse("presence", 83 AlreadyLoggedInProblem = new LLFailedLoginResponse("presence",
79 "You appear to be already logged in. " + 84 "You appear to be already logged in. " +
80 "If this is not the case please wait for your session to timeout. " + 85 "If this is not the case please wait for your session to timeout. " +
@@ -145,6 +150,7 @@ namespace OpenSim.Services.LLLoginService
145 private UUID agentID; 150 private UUID agentID;
146 private UUID sessionID; 151 private UUID sessionID;
147 private UUID secureSessionID; 152 private UUID secureSessionID;
153 private UUID realID;
148 154
149 // Login Flags 155 // Login Flags
150 private string dst; 156 private string dst;
@@ -227,7 +233,7 @@ namespace OpenSim.Services.LLLoginService
227 GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, 233 GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService,
228 string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, 234 string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message,
229 GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency, 235 GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency,
230 string DSTZone, string destinationsURL, string avatarsURL) 236 string DSTZone, string destinationsURL, string avatarsURL, UUID realID)
231 : this() 237 : this()
232 { 238 {
233 FillOutInventoryData(invSkel, libService); 239 FillOutInventoryData(invSkel, libService);
@@ -240,6 +246,7 @@ namespace OpenSim.Services.LLLoginService
240 AgentID = account.PrincipalID; 246 AgentID = account.PrincipalID;
241 SessionID = aCircuit.SessionID; 247 SessionID = aCircuit.SessionID;
242 SecureSessionID = aCircuit.SecureSessionID; 248 SecureSessionID = aCircuit.SecureSessionID;
249 RealID = realID;
243 Message = message; 250 Message = message;
244 BuddList = ConvertFriendListItem(friendsList); 251 BuddList = ConvertFriendListItem(friendsList);
245 StartLocation = where; 252 StartLocation = where;
@@ -377,6 +384,7 @@ namespace OpenSim.Services.LLLoginService
377 private void FillOutRegionData(GridRegion destination) 384 private void FillOutRegionData(GridRegion destination)
378 { 385 {
379 IPEndPoint endPoint = destination.ExternalEndPoint; 386 IPEndPoint endPoint = destination.ExternalEndPoint;
387 if (endPoint == null) return;
380 SimAddress = endPoint.Address.ToString(); 388 SimAddress = endPoint.Address.ToString();
381 SimPort = (uint)endPoint.Port; 389 SimPort = (uint)endPoint.Port;
382 RegionX = (uint)destination.RegionLocX; 390 RegionX = (uint)destination.RegionLocX;
@@ -452,6 +460,7 @@ namespace OpenSim.Services.LLLoginService
452 SessionID = UUID.Random(); 460 SessionID = UUID.Random();
453 SecureSessionID = UUID.Random(); 461 SecureSessionID = UUID.Random();
454 AgentID = UUID.Random(); 462 AgentID = UUID.Random();
463 RealID = UUID.Zero;
455 464
456 Hashtable InitialOutfitHash = new Hashtable(); 465 Hashtable InitialOutfitHash = new Hashtable();
457 InitialOutfitHash["folder_name"] = "Nightclub Female"; 466 InitialOutfitHash["folder_name"] = "Nightclub Female";
@@ -495,6 +504,7 @@ namespace OpenSim.Services.LLLoginService
495 responseData["http_port"] = (Int32)SimHttpPort; 504 responseData["http_port"] = (Int32)SimHttpPort;
496 505
497 responseData["agent_id"] = AgentID.ToString(); 506 responseData["agent_id"] = AgentID.ToString();
507 responseData["real_id"] = RealID.ToString();
498 responseData["session_id"] = SessionID.ToString(); 508 responseData["session_id"] = SessionID.ToString();
499 responseData["secure_session_id"] = SecureSessionID.ToString(); 509 responseData["secure_session_id"] = SecureSessionID.ToString();
500 responseData["circuit_code"] = CircuitCode; 510 responseData["circuit_code"] = CircuitCode;
@@ -583,6 +593,7 @@ namespace OpenSim.Services.LLLoginService
583 map["sim_ip"] = OSD.FromString(SimAddress); 593 map["sim_ip"] = OSD.FromString(SimAddress);
584 594
585 map["agent_id"] = OSD.FromUUID(AgentID); 595 map["agent_id"] = OSD.FromUUID(AgentID);
596 map["real_id"] = OSD.FromUUID(RealID);
586 map["session_id"] = OSD.FromUUID(SessionID); 597 map["session_id"] = OSD.FromUUID(SessionID);
587 map["secure_session_id"] = OSD.FromUUID(SecureSessionID); 598 map["secure_session_id"] = OSD.FromUUID(SecureSessionID);
588 map["circuit_code"] = OSD.FromInteger(CircuitCode); 599 map["circuit_code"] = OSD.FromInteger(CircuitCode);
@@ -890,6 +901,12 @@ namespace OpenSim.Services.LLLoginService
890 set { secureSessionID = value; } 901 set { secureSessionID = value; }
891 } 902 }
892 903
904 public UUID RealID
905 {
906 get { return realID; }
907 set { realID = value; }
908 }
909
893 public Int32 CircuitCode 910 public Int32 CircuitCode
894 { 911 {
895 get { return circuitCode; } 912 get { return circuitCode; }