mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Change the loader to actually load the user service data module
This commit is contained in:
@@ -36,7 +36,7 @@ namespace OpenSim.Services.UserAccountService
|
||||
{
|
||||
public class UserAccountServiceBase: ServiceBase
|
||||
{
|
||||
protected IUserDataPlugin m_Database = null;
|
||||
protected IUserAccountData m_Database = null;
|
||||
|
||||
public UserAccountServiceBase(IConfigSource config) : base(config)
|
||||
{
|
||||
@@ -53,12 +53,12 @@ namespace OpenSim.Services.UserAccountService
|
||||
string connString = userConfig.GetString("ConnectionString",
|
||||
String.Empty);
|
||||
|
||||
m_Database = LoadPlugin<IUserDataPlugin>(dllName);
|
||||
string realm = userConfig.GetString("Realm", "users");
|
||||
|
||||
m_Database = LoadPlugin<IUserAccountData>(dllName, new Object[] {connString, realm});
|
||||
|
||||
if (m_Database == null)
|
||||
throw new Exception("Could not find a storage interface in the given module");
|
||||
|
||||
m_Database.Initialise(connString);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user