Oops, forgot the other half of SL-16825 fix. need to check both "RememberUser" and "RememberPassword" settings

master
Brad Kittenbrink 2022-03-08 17:29:45 -08:00
parent 89ab1e4525
commit 87b494f585
1 changed files with 3 additions and 1 deletions

View File

@ -3617,7 +3617,9 @@ bool process_login_success_response()
LLViewerMedia::getInstance()->openIDSetup(openid_url, openid_token);
}
if(response.has("mfa_hash") && gSavedSettings.getBOOL("RememberUser"))
// 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());