aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Framework/UserProfileManagerBase.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim.Framework/UserProfileManagerBase.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim.Framework/UserProfileManagerBase.cs b/OpenSim.Framework/UserProfileManagerBase.cs
index 4428831..c9fbf4c 100644
--- a/OpenSim.Framework/UserProfileManagerBase.cs
+++ b/OpenSim.Framework/UserProfileManagerBase.cs
@@ -52,7 +52,7 @@ namespace OpenSim.Framework.User
52 { 52 {
53 foreach (libsecondlife.LLUUID UUID in UserProfiles.Keys) 53 foreach (libsecondlife.LLUUID UUID in UserProfiles.Keys)
54 { 54 {
55 if ((UserProfiles[UUID].firstname == firstname) && (UserProfiles[UUID].lastname == lastname)) 55 if (UserProfiles[UUID].firstname.Equals(firstname)) if (UserProfiles[UUID].lastname.Equals(lastname))
56 { 56 {
57 return UserProfiles[UUID]; 57 return UserProfiles[UUID];
58 } 58 }
@@ -73,7 +73,7 @@ namespace OpenSim.Framework.User
73 { 73 {
74 if (TheUser.MD5passwd == passwd) 74 if (TheUser.MD5passwd == passwd)
75 { 75 {
76 Console.WriteLine("UserProfile - authorised "); 76 Console.WriteLine("UserProfile - authorised " + firstname + " " + lastname);
77 return true; 77 return true;
78 } 78 }
79 else 79 else
@@ -103,8 +103,7 @@ namespace OpenSim.Framework.User
103 newprofile.firstname = firstname; 103 newprofile.firstname = firstname;
104 newprofile.lastname = lastname; 104 newprofile.lastname = lastname;
105 newprofile.MD5passwd = MD5passwd; 105 newprofile.MD5passwd = MD5passwd;
106 newprofile.UUID = LLUUID.Random(); 106 newprofile.UUID = LLUUID.Random(); newprofile.Inventory.CreateRootFolder(newprofile.UUID, true);
107 newprofile.Inventory.CreateRootFolder(newprofile.UUID, true);
108 this.UserProfiles.Add(newprofile.UUID, newprofile); 107 this.UserProfiles.Add(newprofile.UUID, newprofile);
109 return newprofile; 108 return newprofile;
110 } 109 }