From e1aa83e965440b3e830d599e18ff078104e8a886 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 9 Jan 2008 04:13:04 +0000 Subject: * Added a hashtable based HTTP processor in preparation of the web_login_key * Added the web_login_key to the users table * Added happy configurable http error message pages * This update is large enough to have 'awe' value.. so backup your users or weep. * Not tested on MSSQL, even though I added code to update the tables! --- OpenSim/Framework/Data.MySQL/MySQLManager.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework/Data.MySQL/MySQLManager.cs') diff --git a/OpenSim/Framework/Data.MySQL/MySQLManager.cs b/OpenSim/Framework/Data.MySQL/MySQLManager.cs index 9532f21..223d902 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLManager.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLManager.cs @@ -446,6 +446,7 @@ namespace OpenSim.Framework.Data.MySQL retval.profileImage = new LLUUID((string) reader["profileImage"]); retval.profileFirstImage = new LLUUID((string) reader["profileFirstImage"]); + retval.webLoginKey = new LLUUID((string)reader["webLoginKey"]); } else { @@ -531,7 +532,7 @@ namespace OpenSim.Framework.Data.MySQL float homeLookAtX, float homeLookAtY, float homeLookAtZ, int created, int lastlogin, string inventoryURI, string assetURI, uint canDoMask, uint wantDoMask, string aboutText, string firstText, - LLUUID profileImage, LLUUID firstImage) + LLUUID profileImage, LLUUID firstImage, LLUUID webLoginKey) { string sql = "INSERT INTO users (`UUID`, `username`, `lastname`, `passwordHash`, `passwordSalt`, `homeRegion`, "; @@ -539,14 +540,14 @@ namespace OpenSim.Framework.Data.MySQL "`homeLocationX`, `homeLocationY`, `homeLocationZ`, `homeLookAtX`, `homeLookAtY`, `homeLookAtZ`, `created`, "; sql += "`lastLogin`, `userInventoryURI`, `userAssetURI`, `profileCanDoMask`, `profileWantDoMask`, `profileAboutText`, "; - sql += "`profileFirstText`, `profileImage`, `profileFirstImage`) VALUES "; + sql += "`profileFirstText`, `profileImage`, `profileFirstImage`, `webLoginKey`) VALUES "; sql += "(?UUID, ?username, ?lastname, ?passwordHash, ?passwordSalt, ?homeRegion, "; sql += "?homeLocationX, ?homeLocationY, ?homeLocationZ, ?homeLookAtX, ?homeLookAtY, ?homeLookAtZ, ?created, "; sql += "?lastLogin, ?userInventoryURI, ?userAssetURI, ?profileCanDoMask, ?profileWantDoMask, ?profileAboutText, "; - sql += "?profileFirstText, ?profileImage, ?profileFirstImage)"; + sql += "?profileFirstText, ?profileImage, ?profileFirstImage, ?webLoginKey)"; Dictionary parameters = new Dictionary(); parameters["?UUID"] = uuid.ToString(); @@ -571,6 +572,7 @@ namespace OpenSim.Framework.Data.MySQL parameters["?profileFirstText"] = ""; parameters["?profileImage"] = LLUUID.Zero.ToString(); parameters["?profileFirstImage"] = LLUUID.Zero.ToString(); + parameters["?webLoginKey"] = LLUUID.Random().ToString(); bool returnval = false; -- cgit v1.1