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.
---
.../Communications/CommunicationsManager.cs | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Framework/Communications/CommunicationsManager.cs')
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs
index bb4a853..3f46776 100644
--- a/OpenSim/Framework/Communications/CommunicationsManager.cs
+++ b/OpenSim/Framework/Communications/CommunicationsManager.cs
@@ -255,14 +255,15 @@ namespace OpenSim.Framework.Communications
///
///
///
+ ///
///
///
/// The UUID of the added user. Returns UUID.Zero if the add was unsuccessful
- public UUID AddUser(string firstName, string lastName, string password, uint regX, uint regY)
+ public UUID AddUser(string firstName, string lastName, string password, string email, uint regX, uint regY)
{
string md5PasswdHash = Util.Md5Hash(Util.Md5Hash(password) + ":" + String.Empty);
- m_userServiceAdmin.AddUserProfile(firstName, lastName, md5PasswdHash, regX, regY);
+ m_userServiceAdmin.AddUserProfile(firstName, lastName, md5PasswdHash, email, regX, regY);
UserProfileData userProf = UserService.GetUserProfile(firstName, lastName);
if (userProf == null)
{
@@ -276,11 +277,22 @@ namespace OpenSim.Framework.Communications
}
}
- public UUID AddUser(string firstName, string lastName, string password, uint regX, uint regY, UUID SetUUID)
+ ///
+ /// Adds the user.
+ ///
+ /// The first name.
+ /// The last name.
+ /// The password.
+ /// The email.
+ /// The reg X.
+ /// The reg Y.
+ /// The set UUID.
+ ///
+ public UUID AddUser(string firstName, string lastName, string password, string email, uint regX, uint regY, UUID SetUUID)
{
string md5PasswdHash = Util.Md5Hash(Util.Md5Hash(password) + ":" + String.Empty);
- m_userServiceAdmin.AddUserProfile(firstName, lastName, md5PasswdHash, regX, regY, SetUUID);
+ m_userServiceAdmin.AddUserProfile(firstName, lastName, md5PasswdHash, email, regX, regY, SetUUID);
UserProfileData userProf = UserService.GetUserProfile(firstName, lastName);
if (userProf == null)
{
--
cgit v1.1