aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorJeff Ames2008-03-18 14:51:42 +0000
committerJeff Ames2008-03-18 14:51:42 +0000
commitbf8b5844f24d294c459f54147bd511e7112288bf (patch)
tree1b6a1ba4e9888d43694a8a33c21beb6913ce2d3a /OpenSim/Framework/Communications
parent* Applied Grumly57 patch for #781; Thanks, Grumly! (diff)
downloadopensim-SC-bf8b5844f24d294c459f54147bd511e7112288bf.zip
opensim-SC-bf8b5844f24d294c459f54147bd511e7112288bf.tar.gz
opensim-SC-bf8b5844f24d294c459f54147bd511e7112288bf.tar.bz2
opensim-SC-bf8b5844f24d294c459f54147bd511e7112288bf.tar.xz
Formatting cleanup. Minor refactoring.
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/LoginResponse.cs10
-rw-r--r--OpenSim/Framework/Communications/LoginService.cs7
2 files changed, 12 insertions, 5 deletions
diff --git a/OpenSim/Framework/Communications/LoginResponse.cs b/OpenSim/Framework/Communications/LoginResponse.cs
index a815662..4a31986 100644
--- a/OpenSim/Framework/Communications/LoginResponse.cs
+++ b/OpenSim/Framework/Communications/LoginResponse.cs
@@ -170,7 +170,6 @@ namespace OpenSim.Framework.UserManagement
170 AddClassifiedCategory((Int32) 8, "Service"); 170 AddClassifiedCategory((Int32) 8, "Service");
171 AddClassifiedCategory((Int32) 9, "Personal"); 171 AddClassifiedCategory((Int32) 9, "Personal");
172 172
173
174 SessionID = LLUUID.Random(); 173 SessionID = LLUUID.Random();
175 SecureSessionID = LLUUID.Random(); 174 SecureSessionID = LLUUID.Random();
176 AgentID = LLUUID.Random(); 175 AgentID = LLUUID.Random();
@@ -244,7 +243,10 @@ namespace OpenSim.Framework.UserManagement
244 { 243 {
245 return 244 return
246 (GenerateFailureResponse("presence", 245 (GenerateFailureResponse("presence",
247 "You appear to be already logged in, if this is not the case please wait for your session to timeout, if this takes longer than a few minutes please contact the grid owner. Please wait 5 minutes if you are going to connect to a region nearby to the region you were at previously.", 246 "You appear to be already logged in. " +
247 "If this is not the case please wait for your session to timeout. " +
248 "If this takes longer than a few minutes please contact the grid owner. " +
249 "Please wait 5 minutes if you are going to connect to a region nearby to the region you were at previously.",
248 "false")); 250 "false"));
249 } 251 }
250 252
@@ -252,7 +254,9 @@ namespace OpenSim.Framework.UserManagement
252 { 254 {
253 return GenerateFailureResponseLLSD( 255 return GenerateFailureResponseLLSD(
254 "presence", 256 "presence",
255 "You appear to be already logged in, if this is not the case please wait for your session to timeout, if this takes longer than a few minutes please contact the grid owner", 257 "You appear to be already logged in. " +
258 "If this is not the case please wait for your session to timeout. " +
259 "If this takes longer than a few minutes please contact the grid owner",
256 "false"); 260 "false");
257 } 261 }
258 262
diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs
index 72b408b..be47258 100644
--- a/OpenSim/Framework/Communications/LoginService.cs
+++ b/OpenSim/Framework/Communications/LoginService.cs
@@ -121,6 +121,7 @@ namespace OpenSim.Framework.UserManagement
121 121
122 return logResponse.CreateLoginFailedResponse(); 122 return logResponse.CreateLoginFailedResponse();
123 } 123 }
124
124 if (requestData.Contains("passwd")) 125 if (requestData.Contains("passwd"))
125 { 126 {
126 string passwd = (string)requestData["passwd"]; 127 string passwd = (string)requestData["passwd"];
@@ -494,8 +495,8 @@ namespace OpenSim.Framework.UserManagement
494 } 495 }
495 496
496 public string GetLoginForm(string firstname, string lastname, string location, string region, 497 public string GetLoginForm(string firstname, string lastname, string location, string region,
497 string grid, string channel, string version, string lang, 498 string grid, string channel, string version, string lang,
498 string password, string errormessages) 499 string password, string errormessages)
499 { 500 {
500 // inject our values in the form at the markers 501 // inject our values in the form at the markers
501 502
@@ -522,6 +523,7 @@ namespace OpenSim.Framework.UserManagement
522 loginform = loginform.Replace("[$lang]", lang); 523 loginform = loginform.Replace("[$lang]", lang);
523 loginform = loginform.Replace("[$password]", password); 524 loginform = loginform.Replace("[$password]", password);
524 loginform = loginform.Replace("[$errors]", errormessages); 525 loginform = loginform.Replace("[$errors]", errormessages);
526
525 return loginform; 527 return loginform;
526 } 528 }
527 529
@@ -588,6 +590,7 @@ namespace OpenSim.Framework.UserManagement
588 responseString += "</div>"; 590 responseString += "</div>";
589 responseString += "</body>"; 591 responseString += "</body>";
590 responseString += "</html>"; 592 responseString += "</html>";
593
591 return responseString; 594 return responseString;
592 } 595 }
593 596