Make PrincipalID a synonym for UserID in GetUserAccount

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-10-19 00:23:06 +01:00
parent 97c66f8eac
commit 9f171041c9
1 changed files with 6 additions and 0 deletions

View File

@ -144,6 +144,12 @@ namespace OpenSim.Server.Handlers.UserAccounts
if (UUID.TryParse(request["UserID"].ToString(), out userID)) if (UUID.TryParse(request["UserID"].ToString(), out userID))
account = m_UserAccountService.GetUserAccount(scopeID, userID); account = m_UserAccountService.GetUserAccount(scopeID, userID);
} }
else if (request.ContainsKey("PrincipalID") && request["PrincipalID"] != null)
{
UUID userID;
if (UUID.TryParse(request["PrincipalID"].ToString(), out userID))
account = m_UserAccountService.GetUserAccount(scopeID, userID);
}
else if (request.ContainsKey("Email") && request["Email"] != null) else if (request.ContainsKey("Email") && request["Email"] != null)
{ {
account = m_UserAccountService.GetUserAccount(scopeID, request["Email"].ToString()); account = m_UserAccountService.GetUserAccount(scopeID, request["Email"].ToString());