Added tests for UserAccountService in Robust. In the process fixed a couple of bugs in the network connectors. For some reason the robust-bound code had a CreateUser method, while the client-bound code had no such method. I assume someone is extending the client-side code with their own connectors. I added the missing method, but didn't add it to the service interface.

This commit is contained in:
Diva Canto
2015-05-11 19:55:23 -07:00
parent d0292b0731
commit 923a57a91f
6 changed files with 124 additions and 189 deletions

View File

@@ -257,8 +257,7 @@ namespace OpenSim.Server.Handlers.UserAccounts
byte[] CreateUser(Dictionary<string, object> request)
{
if (!
request.ContainsKey("FirstName")
if (! request.ContainsKey("FirstName")
&& request.ContainsKey("LastName")
&& request.ContainsKey("Password"))
return FailureResult();