mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user