aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MySQL
diff options
context:
space:
mode:
authorTeravus Ovares2008-01-09 18:57:03 +0000
committerTeravus Ovares2008-01-09 18:57:03 +0000
commit49fe4eb3cdf4b5cb11e5fe0980bb7c3a3d47b6ea (patch)
tree37de8fc8d0f2507fd892b6f24ae6b5899a0f0bd7 /OpenSim/Framework/Data.MySQL
parentdefault to OpenSim.Framework.Data.SQLite which is the new storage (diff)
downloadopensim-SC_OLD-49fe4eb3cdf4b5cb11e5fe0980bb7c3a3d47b6ea.zip
opensim-SC_OLD-49fe4eb3cdf4b5cb11e5fe0980bb7c3a3d47b6ea.tar.gz
opensim-SC_OLD-49fe4eb3cdf4b5cb11e5fe0980bb7c3a3d47b6ea.tar.bz2
opensim-SC_OLD-49fe4eb3cdf4b5cb11e5fe0980bb7c3a3d47b6ea.tar.xz
* This may be broken.. it hasn't been tested, however I wanted to get the last database changes in before sdauge changes them significantly.
Diffstat (limited to 'OpenSim/Framework/Data.MySQL')
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLUserData.cs33
1 files changed, 33 insertions, 0 deletions
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
468 return GetAgentByUUID(profile.UUID); 468 return GetAgentByUUID(profile.UUID);
469 } 469 }
470 470
471 public void StoreWebLoginKey(LLUUID AgentID, LLUUID WebLoginKey)
472 {
473
474 Dictionary<string, string> param = new Dictionary<string, string>();
475 param["?UUID"] = AgentID.UUID.ToString();
476 param["?webLoginKey"] = WebLoginKey.UUID.ToString();
477
478 try
479 {
480 lock (database)
481 {
482 IDbCommand updater =
483 database.Query(
484 "update users " +
485 "SET webLoginKey = ?webLoginKey " +
486 "where UUID = ?UUID",
487 param);
488 updater.ExecuteNonQuery();
489
490 }
491 }
492 catch (Exception e)
493 {
494 database.Reconnect();
495 MainLog.Instance.Error(e.ToString());
496 return;
497 }
498
499
500
501
502 }
503
471 /// <summary> 504 /// <summary>
472 /// Returns an agent session by account UUID 505 /// Returns an agent session by account UUID
473 /// </summary> 506 /// </summary>