mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Make the auth module silent when there is no configuration for it
This commit is contained in:
@@ -67,7 +67,7 @@ namespace OpenSim.Services.Connectors
|
||||
IConfig authorizationConfig = source.Configs["AuthorizationService"];
|
||||
if (authorizationConfig == null)
|
||||
{
|
||||
m_log.Info("[AUTHORIZATION CONNECTOR]: AuthorizationService missing from OpenSim.ini");
|
||||
//m_log.Info("[AUTHORIZATION CONNECTOR]: AuthorizationService missing from OpenSim.ini");
|
||||
throw new Exception("Authorization connector init error");
|
||||
}
|
||||
|
||||
@@ -86,6 +86,7 @@ namespace OpenSim.Services.Connectors
|
||||
bool responseOnFailure = authorizationConfig.GetBoolean("ResponseOnFailure",true);
|
||||
|
||||
m_ResponseOnFailure = responseOnFailure;
|
||||
m_log.Info("[AUTHORIZATION CONNECTOR]: AuthorizationService initialized");
|
||||
}
|
||||
|
||||
public bool IsAuthorizedForRegion(string userID, string firstname, string surname, string email, string regionName, string regionID, out string message)
|
||||
|
||||
Reference in New Issue
Block a user