summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2022-11-18 14:21:58 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2022-11-18 14:21:58 +0200
commitd57e95da968f74f869063caad524fd4182593159 (patch)
tree6c9d42de6dce164203e7417e46d3a71a6c2402eb /indra
parent333786d2ba3dc3b1771a9286c1e8c60152ed7037 (diff)
SL-18528 Clear cached MFA token when Remember Password is unchecked in viewer
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanellogin.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp
index 9df3a8e31a..b14fdbf38e 100644
--- a/indra/newview/llpanellogin.cpp
+++ b/indra/newview/llpanellogin.cpp
@@ -1103,6 +1103,18 @@ void LLPanelLogin::onRememberPasswordCheck(void*)
if (sInstance)
{
gSavedSettings.setBOOL("UpdateRememberPasswordSetting", TRUE);
+
+ LLPointer<LLCredential> cred;
+ bool remember_user, remember_password;
+ getFields(cred, remember_user, remember_password);
+
+ std::string grid(LLGridManager::getInstance()->getGridId());
+ std::string user_id(cred->userID());
+ if (!remember_password)
+ {
+ gSecAPIHandler->removeFromProtectedMap("mfa_hash", grid, user_id);
+ gSecAPIHandler->syncProtectedMap();
+ }
}
}