From 49fe4eb3cdf4b5cb11e5fe0980bb7c3a3d47b6ea Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 9 Jan 2008 18:57:03 +0000 Subject: * This may be broken.. it hasn't been tested, however I wanted to get the last database changes in before sdauge changes them significantly. --- OpenSim/Framework/Data.MySQL/MySQLUserData.cs | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'OpenSim/Framework/Data.MySQL') diff --git a/OpenSim/Framework/Data.MySQL/MySQLUserData.cs b/OpenSim/Framework/Data.MySQL/MySQLUserData.cs index e53ab18..76ad551 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLUserData.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLUserData.cs @@ -468,6 +468,39 @@ namespace OpenSim.Framework.Data.MySQL return GetAgentByUUID(profile.UUID); } + public void StoreWebLoginKey(LLUUID AgentID, LLUUID WebLoginKey) + { + + Dictionary param = new Dictionary(); + param["?UUID"] = AgentID.UUID.ToString(); + param["?webLoginKey"] = WebLoginKey.UUID.ToString(); + + try + { + lock (database) + { + IDbCommand updater = + database.Query( + "update users " + + "SET webLoginKey = ?webLoginKey " + + "where UUID = ?UUID", + param); + updater.ExecuteNonQuery(); + + } + } + catch (Exception e) + { + database.Reconnect(); + MainLog.Instance.Error(e.ToString()); + return; + } + + + + + } + /// /// Returns an agent session by account UUID /// -- cgit v1.1