diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2025-05-21 16:36:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-21 16:36:39 +0300 |
commit | a31b7ae2419b4f644ddf559274f650e34212338e (patch) | |
tree | 643bf2322666f460bf4441e63ae5208e4fa84ec5 /indra/newview/llstartup.cpp | |
parent | 5ee83e782d4c25989859124e963a4eac1e33f413 (diff) | |
parent | 3fa76746616e13c6cc5ba8f2bb02d05262fafa3e (diff) |
Merge pull request #4126 from secondlife/maxim/2025.04-p430
#p430 don't show MFA dialog twice
Diffstat (limited to 'indra/newview/llstartup.cpp')
-rw-r--r-- | indra/newview/llstartup.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 4f60f98b49..cc4f49c0b4 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -3884,25 +3884,7 @@ bool process_login_success_response() LLViewerMedia::getInstance()->openIDSetup(openid_url, openid_token); } - - // Only save mfa_hash for future logins if the user wants their info remembered. - if(response.has("mfa_hash") - && gSavedSettings.getBOOL("RememberUser") - && LLLoginInstance::getInstance()->saveMFA()) - { - std::string grid(LLGridManager::getInstance()->getGridId()); - std::string user_id(gUserCredential->userID()); - gSecAPIHandler->addToProtectedMap("mfa_hash", grid, user_id, response["mfa_hash"]); - // TODO(brad) - related to SL-17223 consider building a better interface that sync's automatically - gSecAPIHandler->syncProtectedMap(); - } - else if (!LLLoginInstance::getInstance()->saveMFA()) - { - std::string grid(LLGridManager::getInstance()->getGridId()); - std::string user_id(gUserCredential->userID()); - gSecAPIHandler->removeFromProtectedMap("mfa_hash", grid, user_id); - gSecAPIHandler->syncProtectedMap(); - } + LLLoginInstance::getInstance()->saveMFAHash(response); bool success = false; // JC: gesture loading done below, when we have an asset system |