From 02fd7751d9b89d838fc8ca2dc60fe11f4cfe93a8 Mon Sep 17 00:00:00 2001
From: Charles Krinke
Date: Sun, 23 Nov 2008 03:38:40 +0000
Subject: Mantis#2660. Thank you kindly, Ruud Lathrop for a patch that: This
patch adds the option of adding the email when you create a new user. This
works in Gridmode as none Gridmode. This option is also added to
RemoteAdminPlugin. With a new handler you can create a user with a email.
---
.../Framework/Communications/UserManagerBase.cs | 29 ++++++++++++++++++----
1 file changed, 24 insertions(+), 5 deletions(-)
(limited to 'OpenSim/Framework/Communications/UserManagerBase.cs')
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs
index 4b5d2bb..bc1a593 100644
--- a/OpenSim/Framework/Communications/UserManagerBase.cs
+++ b/OpenSim/Framework/Communications/UserManagerBase.cs
@@ -54,6 +54,7 @@ namespace OpenSim.Framework.Communications
/// Adds a new user server plugin - user servers will be requested in the order they were loaded.
///
/// The filename to the user server plugin DLL
+ ///
public void AddPlugin(string provider, string connect)
{
PluginLoader loader =
@@ -580,15 +581,32 @@ namespace OpenSim.Framework.Communications
#endregion
///
- ///
+ /// Add a new user profile
///
- ///
- public UUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY)
+ /// first name.
+ /// last name.
+ /// password
+ /// email.
+ /// location X.
+ /// location Y.
+ ///
+ public UUID AddUserProfile(string firstName, string lastName, string pass, string email, uint regX, uint regY)
{
- return AddUserProfile(firstName, lastName, pass, regX, regY, UUID.Random());
+ return AddUserProfile(firstName, lastName, pass, email, regX, regY, UUID.Random());
}
- public UUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY, UUID SetUUID)
+ ///
+ /// Adds the user profile.
+ ///
+ /// first name.
+ /// last name.
+ /// password
+ /// email.
+ /// location X.
+ /// location Y.
+ /// UUID of avatar.
+ ///
+ public UUID AddUserProfile(string firstName, string lastName, string pass, string email, uint regX, uint regY, UUID SetUUID)
{
UserProfileData user = new UserProfileData();
user.HomeLocation = new Vector3(128, 128, 100);
@@ -601,6 +619,7 @@ namespace OpenSim.Framework.Communications
user.HomeLookAt = new Vector3(100, 100, 100);
user.HomeRegionX = regX;
user.HomeRegionY = regY;
+ user.Email = email;
foreach (IUserDataPlugin plugin in _plugins)
{
--
cgit v1.1