diff options
Diffstat (limited to 'OpenSim/Framework/Communications/UserManagerBase.cs')
-rw-r--r-- | OpenSim/Framework/Communications/UserManagerBase.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index 46a9b67..b7f9f5a 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs | |||
@@ -546,9 +546,14 @@ namespace OpenSim.Framework.Communications | |||
546 | /// <param name="user"></param> | 546 | /// <param name="user"></param> |
547 | public UUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY) | 547 | public UUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY) |
548 | { | 548 | { |
549 | return AddUserProfile(firstName, lastName, pass, regX, regY, UUID.Random()); | ||
550 | } | ||
551 | |||
552 | public UUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY, UUID SetUUID) | ||
553 | { | ||
549 | UserProfileData user = new UserProfileData(); | 554 | UserProfileData user = new UserProfileData(); |
550 | user.HomeLocation = new Vector3(128, 128, 100); | 555 | user.HomeLocation = new Vector3(128, 128, 100); |
551 | user.ID = UUID.Random(); | 556 | user.ID = SetUUID; |
552 | user.FirstName = firstName; | 557 | user.FirstName = firstName; |
553 | user.SurName = lastName; | 558 | user.SurName = lastName; |
554 | user.PasswordHash = pass; | 559 | user.PasswordHash = pass; |
@@ -572,7 +577,7 @@ namespace OpenSim.Framework.Communications | |||
572 | 577 | ||
573 | return user.ID; | 578 | return user.ID; |
574 | } | 579 | } |
575 | 580 | ||
576 | /// <summary> | 581 | /// <summary> |
577 | /// Reset a user password | 582 | /// Reset a user password |
578 | /// </summary> | 583 | /// </summary> |