diff options
*User Profile requests on OGS UserServer now uses XMLRPC instead of REST
*Added base support for setting up a master user
Diffstat (limited to 'OpenSim/Region/Communications/Local/LocalUserServices.cs')
-rw-r--r-- | OpenSim/Region/Communications/Local/LocalUserServices.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs index 1eb574c..2097870 100644 --- a/OpenSim/Region/Communications/Local/LocalUserServices.cs +++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs | |||
@@ -114,5 +114,30 @@ namespace OpenSim.Region.Communications.Local | |||
114 | 114 | ||
115 | } | 115 | } |
116 | 116 | ||
117 | public UserProfileData SetupMasterUser(string firstName, string lastName) | ||
118 | { | ||
119 | return SetupMasterUser(firstName, lastName, ""); | ||
120 | } | ||
121 | public UserProfileData SetupMasterUser(string firstName, string lastName, string password) | ||
122 | { | ||
123 | UserProfileData profile = getUserProfile(firstName, lastName); | ||
124 | if (profile != null) | ||
125 | { | ||
126 | |||
127 | return profile; | ||
128 | } | ||
129 | |||
130 | Console.WriteLine("Unknown Master User. Sandbox Mode: Creating Account"); | ||
131 | this.AddUserProfile(firstName, lastName, password, defaultHomeX, defaultHomeY); | ||
132 | |||
133 | profile = getUserProfile(firstName, lastName); | ||
134 | |||
135 | if (profile == null) | ||
136 | { | ||
137 | Console.WriteLine("Unknown Master User after creation attempt. No clue what to do here."); | ||
138 | } | ||
139 | |||
140 | return profile; | ||
141 | } | ||
117 | } | 142 | } |
118 | } | 143 | } |