summaryrefslogtreecommitdiff
path: root/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
authorBrad Kittenbrink <brad@lindenlab.com>2022-03-09 14:13:02 -0800
committerBrad Kittenbrink <brad@lindenlab.com>2022-03-17 13:29:12 -0700
commit6bdd744d78f2040767abe57afcb06f8a55a9dd83 (patch)
tree3b061503e2dab19ee3c472d3f21436c971d29caf /indra/newview/llstartup.cpp
parentdc7a24681b4f01b187ae686b628d98a4214a8ab1 (diff)
SL-17019 mfa_hash should get saved per-username
Diffstat (limited to 'indra/newview/llstartup.cpp')
-rw-r--r--indra/newview/llstartup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index 64e6042047..e7a1622332 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -3621,9 +3621,9 @@ bool process_login_success_response()
// Only save mfa_hash for future logins if the user wants their info remembered.
if(response.has("mfa_hash") && gSavedSettings.getBOOL("RememberUser") && gSavedSettings.getBOOL("RememberPassword"))
{
- LLPointer<LLSecAPIHandler> basic_secure_store = getSecHandler(BASIC_SECHANDLER);
std::string grid(LLGridManager::getInstance()->getGridId());
- basic_secure_store->setProtectedData("mfa_hash", grid, response["mfa_hash"]);
+ std::string user_id(gUserCredential->userID());
+ gSecAPIHandler->addToProtectedMap("mfa_hash", grid, user_id, response["mfa_hash"]);
}
bool success = false;