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).
This commit is contained in:
MW
2007-06-22 18:28:49 +00:00
parent 2028cc5896
commit a9dde515ba
25 changed files with 1134 additions and 678 deletions

View File

@@ -41,13 +41,20 @@ namespace OpenSim.LocalCommunications
public class CommunicationsLocal : CommunicationsManager
{
public LocalBackEndServices SandBoxServices = new LocalBackEndServices();
protected LocalUserServices UserServices = new LocalUserServices();
public LocalUserServices UserServices;
public CommunicationsLocal()
public CommunicationsLocal(uint defaultHomeX , uint defaultHomeY)
{
UserServices = new LocalUserServices(this , defaultHomeX, defaultHomeY);
UserServices.AddPlugin("OpenGrid.Framework.Data.DB4o.dll");
UserServer = UserServices;
GridServer = SandBoxServices;
InterRegion = SandBoxServices;
}
internal void InformRegionOfLogin(ulong regionHandle, Login login)
{
this.SandBoxServices.AddNewSession(regionHandle, login);
}
}
}