diff options
Diffstat (limited to 'OpenSim/Framework/Data.MySQL')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLUserData.cs | 33 |
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> |