Complete the first authenticator method

remotes/origin/0.6.7-post-fixes
Melanie 2009-09-19 18:14:22 +01:00
parent 2f624800d3
commit 0c364ee285
1 changed files with 7 additions and 1 deletions

View File

@ -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)