summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-09-20 21:14:30 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-09-20 21:14:30 +0300
commitb88f0e40a584e3a0d9ff3fe11b1eda41fb89a29a (patch)
tree03d39cd94975e9b1158a0174eaccd886016ee0ce /indra/newview
parent81752116e1243d68ae67c4771f267c4170dd9028 (diff)
SL-20308 Clearing user's data should clear mfa #2
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloaterforgetuser.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llfloaterforgetuser.cpp b/indra/newview/llfloaterforgetuser.cpp
index 7f168df0c5..f576ce7a76 100644
--- a/indra/newview/llfloaterforgetuser.cpp
+++ b/indra/newview/llfloaterforgetuser.cpp
@@ -164,6 +164,12 @@ bool LLFloaterForgetUser::onConfirmLogout(const LLSD& notification, const LLSD&
if (option == 0)
{
// Remove creds
+ std::string grid_id = LLGridManager::getInstance()->getGridId(grid);
+ if (grid_id.empty())
+ {
+ grid_id = grid;
+ }
+ gSecAPIHandler->removeFromProtectedMap("mfa_hash", grid_id, LLStartUp::getUserId()); // doesn't write
gSecAPIHandler->removeFromCredentialMap("login_list", grid, LLStartUp::getUserId());
LLPointer<LLCredential> cred = gSecAPIHandler->loadCredential(grid);