mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Remove CreateUserAccount. Rename SetUserAccount to StoreUserAccount.
Implement the fetch operations fully. Rename one last UserService file to UserAccountService
This commit is contained in:
@@ -85,10 +85,8 @@ namespace OpenSim.Server.Handlers.UserAccounts
|
||||
return GetAccount(request);
|
||||
case "getaccounts":
|
||||
return GetAccounts(request);
|
||||
case "createaccount":
|
||||
return CreateAccount(request);
|
||||
case "setaccount":
|
||||
return SetAccount(request);
|
||||
return StoreAccount(request);
|
||||
}
|
||||
m_log.DebugFormat("[PRESENCE HANDLER]: unknown method request: {0}", method);
|
||||
}
|
||||
@@ -174,24 +172,7 @@ namespace OpenSim.Server.Handlers.UserAccounts
|
||||
return encoding.GetBytes(xmlString);
|
||||
}
|
||||
|
||||
byte[] CreateAccount(Dictionary<string, object> request)
|
||||
{
|
||||
if (!request.ContainsKey("account"))
|
||||
return FailureResult();
|
||||
if (request["account"] == null)
|
||||
return FailureResult();
|
||||
if (!(request["account"] is Dictionary<string, object>))
|
||||
return FailureResult();
|
||||
|
||||
UserAccount account = new UserAccount((Dictionary<string, object>) request["account"]);
|
||||
|
||||
if (m_UserAccountService.CreateUserAccount(account))
|
||||
return SuccessResult();
|
||||
|
||||
return FailureResult();
|
||||
}
|
||||
|
||||
byte[] SetAccount(Dictionary<string, object> request)
|
||||
byte[] StoreAccount(Dictionary<string, object> request)
|
||||
{
|
||||
if (!request.ContainsKey("account"))
|
||||
return FailureResult();
|
||||
@@ -202,7 +183,7 @@ namespace OpenSim.Server.Handlers.UserAccounts
|
||||
|
||||
UserAccount account = new UserAccount((Dictionary<string, object>)request["account"]);
|
||||
|
||||
if (m_UserAccountService.SetUserAccount(account))
|
||||
if (m_UserAccountService.StoreUserAccount(account))
|
||||
return SuccessResult();
|
||||
|
||||
return FailureResult();
|
||||
|
||||
Reference in New Issue
Block a user