* Changed name of auth function to better reflect actual use
parent
09281fb55c
commit
27d9e715c0
|
@ -152,7 +152,7 @@ namespace OpenSim.Framework.Communications
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
"[LOGIN]: XMLRPC Client is {0}, start location is {1}", clientVersion, startLocationRequest);
|
"[LOGIN]: XMLRPC Client is {0}, start location is {1}", clientVersion, startLocationRequest);
|
||||||
|
|
||||||
if (!TryAuthenticateUser(request, firstname, lastname, out userProfile))
|
if( !TryAuthenticateXmlRpcLogin(request, firstname, lastname, out userProfile ) )
|
||||||
{
|
{
|
||||||
return logResponse.CreateLoginFailedResponse();
|
return logResponse.CreateLoginFailedResponse();
|
||||||
}
|
}
|
||||||
|
@ -193,6 +193,7 @@ namespace OpenSim.Framework.Communications
|
||||||
|
|
||||||
return logResponse.CreateAlreadyLoggedInResponse();
|
return logResponse.CreateAlreadyLoggedInResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise...
|
// Otherwise...
|
||||||
// Create a new agent session
|
// Create a new agent session
|
||||||
|
|
||||||
|
@ -285,7 +286,7 @@ namespace OpenSim.Framework.Communications
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual bool TryAuthenticateUser(XmlRpcRequest request, string firstname, string lastname, out UserProfileData userProfile)
|
protected virtual bool TryAuthenticateXmlRpcLogin(XmlRpcRequest request, string firstname, string lastname, out UserProfileData userProfile)
|
||||||
{
|
{
|
||||||
Hashtable requestData = (Hashtable)request.Params[0];
|
Hashtable requestData = (Hashtable)request.Params[0];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue