Make the auth module silent when there is no configuration for it
parent
482dcb7e89
commit
5dcb14726d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue