aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client
diff options
context:
space:
mode:
authorlbsa712009-03-10 11:47:34 +0000
committerlbsa712009-03-10 11:47:34 +0000
commit1917238cd3f24f05343a8b7737b8208c6e587700 (patch)
tree8fdb70063f291c5e8af4f695d8bd83504729b429 /OpenSim/Client
parent* Removed unused and uncommented file (diff)
downloadopensim-SC_OLD-1917238cd3f24f05343a8b7737b8208c6e587700.zip
opensim-SC_OLD-1917238cd3f24f05343a8b7737b8208c6e587700.tar.gz
opensim-SC_OLD-1917238cd3f24f05343a8b7737b8208c6e587700.tar.bz2
opensim-SC_OLD-1917238cd3f24f05343a8b7737b8208c6e587700.tar.xz
* Re-aligned CustomiseResponse function for imminent up-pulling
Diffstat (limited to 'OpenSim/Client')
-rw-r--r--OpenSim/Client/Linden/LLStandaloneLoginService.cs30
1 files changed, 14 insertions, 16 deletions
diff --git a/OpenSim/Client/Linden/LLStandaloneLoginService.cs b/OpenSim/Client/Linden/LLStandaloneLoginService.cs
index 5f43814..8fe7172 100644
--- a/OpenSim/Client/Linden/LLStandaloneLoginService.cs
+++ b/OpenSim/Client/Linden/LLStandaloneLoginService.cs
@@ -48,10 +48,8 @@ namespace OpenSim.Client.Linden
48 { 48 {
49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
50 50
51 protected NetworkServersInfo serversInfo; 51 protected NetworkServersInfo m_serversInfo;
52 protected uint defaultHomeX; 52 protected bool m_authUsers = false;
53 protected uint defaultHomeY;
54 protected bool authUsers = false;
55 53
56 /// <summary> 54 /// <summary>
57 /// Used by the login service to make requests to the inventory service. 55 /// Used by the login service to make requests to the inventory service.
@@ -71,10 +69,10 @@ namespace OpenSim.Client.Linden
71 bool authenticate, LibraryRootFolder libraryRootFolder, ILoginServiceToRegionsConnector regionsConnector) 69 bool authenticate, LibraryRootFolder libraryRootFolder, ILoginServiceToRegionsConnector regionsConnector)
72 : base(userManager, libraryRootFolder, welcomeMess) 70 : base(userManager, libraryRootFolder, welcomeMess)
73 { 71 {
74 this.serversInfo = serversInfo; 72 this.m_serversInfo = serversInfo;
75 defaultHomeX = this.serversInfo.DefaultHomeLocX; 73 m_defaultHomeX = this.m_serversInfo.DefaultHomeLocX;
76 defaultHomeY = this.serversInfo.DefaultHomeLocY; 74 m_defaultHomeY = this.m_serversInfo.DefaultHomeLocY;
77 authUsers = authenticate; 75 m_authUsers = authenticate;
78 76
79 m_interServiceInventoryService = interServiceInventoryService; 77 m_interServiceInventoryService = interServiceInventoryService;
80 m_regionsConnector = regionsConnector; 78 m_regionsConnector = regionsConnector;
@@ -88,12 +86,12 @@ namespace OpenSim.Client.Linden
88 return profile; 86 return profile;
89 } 87 }
90 88
91 if (!authUsers) 89 if (!m_authUsers)
92 { 90 {
93 //no current user account so make one 91 //no current user account so make one
94 m_log.Info("[LOGIN]: No user account found so creating a new one."); 92 m_log.Info("[LOGIN]: No user account found so creating a new one.");
95 93
96 m_userManager.AddUser(firstname, lastname, "test", "", defaultHomeX, defaultHomeY); 94 m_userManager.AddUser(firstname, lastname, "test", "", m_defaultHomeX, m_defaultHomeY);
97 95
98 return m_userManager.GetUserProfile(firstname, lastname); 96 return m_userManager.GetUserProfile(firstname, lastname);
99 } 97 }
@@ -103,7 +101,7 @@ namespace OpenSim.Client.Linden
103 101
104 public override bool AuthenticateUser(UserProfileData profile, string password) 102 public override bool AuthenticateUser(UserProfileData profile, string password)
105 { 103 {
106 if (!authUsers) 104 if (!m_authUsers)
107 { 105 {
108 //for now we will accept any password in sandbox mode 106 //for now we will accept any password in sandbox mode
109 m_log.Info("[LOGIN]: Authorising user (no actual password check)"); 107 m_log.Info("[LOGIN]: Authorising user (no actual password check)");
@@ -235,8 +233,8 @@ namespace OpenSim.Client.Linden
235 //m_log.InfoFormat("[LOGIN]: StartLocation not available sending to region {0}", regionInfo.regionName); 233 //m_log.InfoFormat("[LOGIN]: StartLocation not available sending to region {0}", regionInfo.regionName);
236 234
237 // Send him to default region instead 235 // Send him to default region instead
238 ulong defaultHandle = (((ulong)defaultHomeX * Constants.RegionSize) << 32) | 236 ulong defaultHandle = (((ulong)m_defaultHomeX * Constants.RegionSize) << 32) |
239 ((ulong)defaultHomeY * Constants.RegionSize); 237 ((ulong)m_defaultHomeY * Constants.RegionSize);
240 238
241 if ((regionInfo != null) && (defaultHandle == regionInfo.RegionHandle)) 239 if ((regionInfo != null) && (defaultHandle == regionInfo.RegionHandle))
242 { 240 {
@@ -328,13 +326,13 @@ namespace OpenSim.Client.Linden
328 326
329 string seedcap = "http://"; 327 string seedcap = "http://";
330 328
331 if (serversInfo.HttpUsesSSL) 329 if (m_serversInfo.HttpUsesSSL)
332 { 330 {
333 seedcap = "https://" + serversInfo.HttpSSLCN + ":" + serversInfo.httpSSLPort + capsSeedPath; 331 seedcap = "https://" + m_serversInfo.HttpSSLCN + ":" + m_serversInfo.httpSSLPort + capsSeedPath;
334 } 332 }
335 else 333 else
336 { 334 {
337 seedcap = "http://" + regionInfo.ExternalHostName + ":" + serversInfo.HttpListenerPort + capsSeedPath; 335 seedcap = "http://" + regionInfo.ExternalHostName + ":" + m_serversInfo.HttpListenerPort + capsSeedPath;
338 } 336 }
339 337
340 response.SeedCapability = seedcap; 338 response.SeedCapability = seedcap;