diff options
author | Charles Krinke | 2008-11-23 03:38:40 +0000 |
---|---|---|
committer | Charles Krinke | 2008-11-23 03:38:40 +0000 |
commit | 02fd7751d9b89d838fc8ca2dc60fe11f4cfe93a8 (patch) | |
tree | f95a3170f3dd41be8ccf10957aef7209492a0279 /OpenSim/Framework/Communications/UserManagerBase.cs | |
parent | Add error handling to catch the WebExceptions thrown if you have (diff) | |
download | opensim-SC_OLD-02fd7751d9b89d838fc8ca2dc60fe11f4cfe93a8.zip opensim-SC_OLD-02fd7751d9b89d838fc8ca2dc60fe11f4cfe93a8.tar.gz opensim-SC_OLD-02fd7751d9b89d838fc8ca2dc60fe11f4cfe93a8.tar.bz2 opensim-SC_OLD-02fd7751d9b89d838fc8ca2dc60fe11f4cfe93a8.tar.xz |
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.
Diffstat (limited to 'OpenSim/Framework/Communications/UserManagerBase.cs')
-rw-r--r-- | OpenSim/Framework/Communications/UserManagerBase.cs | 29 |
1 files changed, 24 insertions, 5 deletions
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 | |||
54 | /// Adds a new user server plugin - user servers will be requested in the order they were loaded. | 54 | /// Adds a new user server plugin - user servers will be requested in the order they were loaded. |
55 | /// </summary> | 55 | /// </summary> |
56 | /// <param name="provider">The filename to the user server plugin DLL</param> | 56 | /// <param name="provider">The filename to the user server plugin DLL</param> |
57 | /// <param name="connect"></param> | ||
57 | public void AddPlugin(string provider, string connect) | 58 | public void AddPlugin(string provider, string connect) |
58 | { | 59 | { |
59 | PluginLoader<IUserDataPlugin> loader = | 60 | PluginLoader<IUserDataPlugin> loader = |
@@ -580,15 +581,32 @@ namespace OpenSim.Framework.Communications | |||
580 | #endregion | 581 | #endregion |
581 | 582 | ||
582 | /// <summary> | 583 | /// <summary> |
583 | /// | 584 | /// Add a new user profile |
584 | /// </summary> | 585 | /// </summary> |
585 | /// <param name="user"></param> | 586 | /// <param name="firstName">first name.</param> |
586 | public UUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY) | 587 | /// <param name="lastName">last name.</param> |
588 | /// <param name="pass">password</param> | ||
589 | /// <param name="email">email.</param> | ||
590 | /// <param name="regX">location X.</param> | ||
591 | /// <param name="regY">location Y.</param> | ||
592 | /// <returns></returns> | ||
593 | public UUID AddUserProfile(string firstName, string lastName, string pass, string email, uint regX, uint regY) | ||
587 | { | 594 | { |
588 | return AddUserProfile(firstName, lastName, pass, regX, regY, UUID.Random()); | 595 | return AddUserProfile(firstName, lastName, pass, email, regX, regY, UUID.Random()); |
589 | } | 596 | } |
590 | 597 | ||
591 | public UUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY, UUID SetUUID) | 598 | /// <summary> |
599 | /// Adds the user profile. | ||
600 | /// </summary> | ||
601 | /// <param name="firstName">first name.</param> | ||
602 | /// <param name="lastName">last name.</param> | ||
603 | /// <param name="pass">password</param> | ||
604 | /// <param name="email">email.</param> | ||
605 | /// <param name="regX">location X.</param> | ||
606 | /// <param name="regY">location Y.</param> | ||
607 | /// <param name="SetUUID">UUID of avatar.</param> | ||
608 | /// <returns></returns> | ||
609 | public UUID AddUserProfile(string firstName, string lastName, string pass, string email, uint regX, uint regY, UUID SetUUID) | ||
592 | { | 610 | { |
593 | UserProfileData user = new UserProfileData(); | 611 | UserProfileData user = new UserProfileData(); |
594 | user.HomeLocation = new Vector3(128, 128, 100); | 612 | user.HomeLocation = new Vector3(128, 128, 100); |
@@ -601,6 +619,7 @@ namespace OpenSim.Framework.Communications | |||
601 | user.HomeLookAt = new Vector3(100, 100, 100); | 619 | user.HomeLookAt = new Vector3(100, 100, 100); |
602 | user.HomeRegionX = regX; | 620 | user.HomeRegionX = regX; |
603 | user.HomeRegionY = regY; | 621 | user.HomeRegionY = regY; |
622 | user.Email = email; | ||
604 | 623 | ||
605 | foreach (IUserDataPlugin plugin in _plugins) | 624 | foreach (IUserDataPlugin plugin in _plugins) |
606 | { | 625 | { |