*User Profile requests on OGS UserServer now uses XMLRPC instead of REST

*Added base support for setting up a master user
This commit is contained in:
mingchen
2007-06-28 14:45:46 +00:00
parent 561db23e5f
commit bee543300f
6 changed files with 164 additions and 138 deletions

View File

@@ -114,5 +114,30 @@ namespace OpenSim.Region.Communications.Local
}
public UserProfileData SetupMasterUser(string firstName, string lastName)
{
return SetupMasterUser(firstName, lastName, "");
}
public UserProfileData SetupMasterUser(string firstName, string lastName, string password)
{
UserProfileData profile = getUserProfile(firstName, lastName);
if (profile != null)
{
return profile;
}
Console.WriteLine("Unknown Master User. Sandbox Mode: Creating Account");
this.AddUserProfile(firstName, lastName, password, defaultHomeX, defaultHomeY);
profile = getUserProfile(firstName, lastName);
if (profile == null)
{
Console.WriteLine("Unknown Master User after creation attempt. No clue what to do here.");
}
return profile;
}
}
}

View File

@@ -11,7 +11,7 @@ namespace OpenSim.Region.Communications.OGS1
{
public UserProfileData GetUserProfile(string firstName, string lastName)
{
return null;
return GetUserProfile(firstName + " " + lastName);
}
public UserProfileData GetUserProfile(string name)
{
@@ -21,5 +21,20 @@ namespace OpenSim.Region.Communications.OGS1
{
return null;
}
public UserProfileData SetupMasterUser(string firstName, string lastName)
{
return SetupMasterUser(firstName, lastName, "");
}
public UserProfileData SetupMasterUser(string firstName, string lastName, string password)
{
UserProfileData profile = GetUserProfile(firstName, lastName);
if (profile == null)
{
Console.WriteLine("Unknown Master User. Grid Mode: No clue what I should do. Probably would choose the grid owner UUID when that is implemented");
}
return null;
}
}
}