diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index c3756d0..0f57c2e 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; |
@@ -228,8 +234,9 @@ namespace OpenSim.Services.LLLoginService | |||
228 | public LLLoginResponse(UserAccount account, AgentCircuitData aCircuit, GridUserInfo pinfo, | 234 | public LLLoginResponse(UserAccount account, AgentCircuitData aCircuit, GridUserInfo pinfo, |
229 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, | 235 | GridRegion destination, List<InventoryFolderBase> invSkel, FriendInfo[] friendsList, ILibraryService libService, |
230 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, | 236 | string where, string startlocation, Vector3 position, Vector3 lookAt, List<InventoryItemBase> gestures, string message, |
231 | GridRegion home, IPEndPoint clientIP, string mapTileURL, string searchURL, string currency, | 237 | |
232 | string DSTZone, string destinationsURL, string avatarsURL, string classifiedFee, int maxAgentGroups) | 238 | GridRegion home, IPEndPoint clientIP, string mapTileURL, string profileURL, string openIDURL, string searchURL, string currency, |
239 | string DSTZone, string destinationsURL, string avatarsURL, UUID realID, string classifiedFee,int maxAgentGroups) | ||
233 | : this() | 240 | : this() |
234 | { | 241 | { |
235 | FillOutInventoryData(invSkel, libService); | 242 | FillOutInventoryData(invSkel, libService); |
@@ -242,6 +249,7 @@ namespace OpenSim.Services.LLLoginService | |||
242 | AgentID = account.PrincipalID; | 249 | AgentID = account.PrincipalID; |
243 | SessionID = aCircuit.SessionID; | 250 | SessionID = aCircuit.SessionID; |
244 | SecureSessionID = aCircuit.SecureSessionID; | 251 | SecureSessionID = aCircuit.SecureSessionID; |
252 | RealID = realID; | ||
245 | Message = message; | 253 | Message = message; |
246 | BuddList = ConvertFriendListItem(friendsList); | 254 | BuddList = ConvertFriendListItem(friendsList); |
247 | StartLocation = where; | 255 | StartLocation = where; |
@@ -383,6 +391,7 @@ namespace OpenSim.Services.LLLoginService | |||
383 | private void FillOutRegionData(GridRegion destination) | 391 | private void FillOutRegionData(GridRegion destination) |
384 | { | 392 | { |
385 | IPEndPoint endPoint = destination.ExternalEndPoint; | 393 | IPEndPoint endPoint = destination.ExternalEndPoint; |
394 | if (endPoint == null) return; | ||
386 | SimAddress = endPoint.Address.ToString(); | 395 | SimAddress = endPoint.Address.ToString(); |
387 | SimPort = (uint)endPoint.Port; | 396 | SimPort = (uint)endPoint.Port; |
388 | RegionX = (uint)destination.RegionLocX; | 397 | RegionX = (uint)destination.RegionLocX; |
@@ -473,6 +482,7 @@ namespace OpenSim.Services.LLLoginService | |||
473 | SessionID = UUID.Random(); | 482 | SessionID = UUID.Random(); |
474 | SecureSessionID = UUID.Random(); | 483 | SecureSessionID = UUID.Random(); |
475 | AgentID = UUID.Random(); | 484 | AgentID = UUID.Random(); |
485 | RealID = UUID.Zero; | ||
476 | 486 | ||
477 | Hashtable InitialOutfitHash = new Hashtable(); | 487 | Hashtable InitialOutfitHash = new Hashtable(); |
478 | InitialOutfitHash["folder_name"] = "Nightclub Female"; | 488 | InitialOutfitHash["folder_name"] = "Nightclub Female"; |
@@ -518,6 +528,7 @@ namespace OpenSim.Services.LLLoginService | |||
518 | responseData["http_port"] = (Int32)SimHttpPort; | 528 | responseData["http_port"] = (Int32)SimHttpPort; |
519 | 529 | ||
520 | responseData["agent_id"] = AgentID.ToString(); | 530 | responseData["agent_id"] = AgentID.ToString(); |
531 | responseData["real_id"] = RealID.ToString(); | ||
521 | responseData["session_id"] = SessionID.ToString(); | 532 | responseData["session_id"] = SessionID.ToString(); |
522 | responseData["secure_session_id"] = SecureSessionID.ToString(); | 533 | responseData["secure_session_id"] = SecureSessionID.ToString(); |
523 | responseData["circuit_code"] = CircuitCode; | 534 | responseData["circuit_code"] = CircuitCode; |
@@ -613,6 +624,7 @@ namespace OpenSim.Services.LLLoginService | |||
613 | map["sim_ip"] = OSD.FromString(SimAddress); | 624 | map["sim_ip"] = OSD.FromString(SimAddress); |
614 | 625 | ||
615 | map["agent_id"] = OSD.FromUUID(AgentID); | 626 | map["agent_id"] = OSD.FromUUID(AgentID); |
627 | map["real_id"] = OSD.FromUUID(RealID); | ||
616 | map["session_id"] = OSD.FromUUID(SessionID); | 628 | map["session_id"] = OSD.FromUUID(SessionID); |
617 | map["secure_session_id"] = OSD.FromUUID(SecureSessionID); | 629 | map["secure_session_id"] = OSD.FromUUID(SecureSessionID); |
618 | map["circuit_code"] = OSD.FromInteger(CircuitCode); | 630 | map["circuit_code"] = OSD.FromInteger(CircuitCode); |
@@ -924,6 +936,12 @@ namespace OpenSim.Services.LLLoginService | |||
924 | set { secureSessionID = value; } | 936 | set { secureSessionID = value; } |
925 | } | 937 | } |
926 | 938 | ||
939 | public UUID RealID | ||
940 | { | ||
941 | get { return realID; } | ||
942 | set { realID = value; } | ||
943 | } | ||
944 | |||
927 | public Int32 CircuitCode | 945 | public Int32 CircuitCode |
928 | { | 946 | { |
929 | get { return circuitCode; } | 947 | get { return circuitCode; } |