mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Complete the first authenticator method
This commit is contained in:
@@ -95,7 +95,13 @@ namespace OpenSim.Services.Connectors
|
||||
m_ServerURI + "/auth/plain",
|
||||
ServerUtils.BuildQueryString(sendData));
|
||||
|
||||
return String.Empty;
|
||||
Dictionary<string, object> replyData = ServerUtils.ParseXmlResponse(
|
||||
reply);
|
||||
|
||||
if (replyData["Result"].ToString() != "Success")
|
||||
return String.Empty;
|
||||
|
||||
return replyData["Token"].ToString();
|
||||
}
|
||||
|
||||
public bool Verify(UUID principalID, string token, int lifetime)
|
||||
|
||||
Reference in New Issue
Block a user