mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
*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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user