aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-24 14:36:08 +0000
committerAdam Frisby2007-06-24 14:36:08 +0000
commit2fde703ebd3fa687c139ccba956b0c81cdfb4090 (patch)
tree297ec428668b1b226efb6e4fa1a59a159acdf0d9 /OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
parent* Maintainence: Experimental console fix for Debian (diff)
downloadopensim-SC_OLD-2fde703ebd3fa687c139ccba956b0c81cdfb4090.zip
opensim-SC_OLD-2fde703ebd3fa687c139ccba956b0c81cdfb4090.tar.gz
opensim-SC_OLD-2fde703ebd3fa687c139ccba956b0c81cdfb4090.tar.bz2
opensim-SC_OLD-2fde703ebd3fa687c139ccba956b0c81cdfb4090.tar.xz
* "create user" command now works with the MySQL Data Storage Engine on the userserver.
Diffstat (limited to 'OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs')
-rw-r--r--OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
index 032a0e6..e988c94 100644
--- a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
+++ b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLUserData.cs
@@ -200,6 +200,20 @@ namespace OpenGrid.Framework.Data.MySQL
200 /// <param name="user">The user profile to create</param> 200 /// <param name="user">The user profile to create</param>
201 public void addNewUserProfile(UserProfileData user) 201 public void addNewUserProfile(UserProfileData user)
202 { 202 {
203 try
204 {
205 lock (database)
206 {
207 database.insertUserRow(user.UUID, user.username, user.surname, user.passwordHash, user.passwordSalt, user.homeRegion, user.homeLocation.X, user.homeLocation.Y, user.homeLocation.Z,
208 user.homeLookAt.X, user.homeLookAt.Y, user.homeLookAt.Z, user.created, user.lastLogin, user.userInventoryURI, user.userAssetURI, user.profileCanDoMask, user.profileWantDoMask,
209 user.profileAboutText, user.profileFirstText, user.profileImage, user.profileFirstImage);
210 }
211 }
212 catch (Exception e)
213 {
214 database.Reconnect();
215 Console.WriteLine(e.ToString());
216 }
203 } 217 }
204 218
205 /// <summary> 219 /// <summary>