Skip to content
Snippets Groups Projects
Commit 349b5724 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-930 Fixed Viewer saves your password whether you want it to or not

parent 7004dfe7
No related branches found
No related tags found
No related merge requests found
...@@ -168,7 +168,6 @@ LLPointer<LLCredential> LLLoginHandler::loadSavedUserLoginInfo() ...@@ -168,7 +168,6 @@ LLPointer<LLCredential> LLLoginHandler::loadSavedUserLoginInfo()
authenticator["algorithm"] = "md5"; authenticator["algorithm"] = "md5";
authenticator["secret"] = md5pass; authenticator["secret"] = md5pass;
// yuck, we'll fix this with mani's changes. // yuck, we'll fix this with mani's changes.
gSavedSettings.setBOOL("AutoLogin", TRUE);
return gSecAPIHandler->createCredential(LLGridManager::getInstance()->getGrid(), return gSecAPIHandler->createCredential(LLGridManager::getInstance()->getGrid(),
identifier, authenticator); identifier, authenticator);
} }
......
...@@ -683,10 +683,17 @@ bool idle_startup() ...@@ -683,10 +683,17 @@ bool idle_startup()
} }
else if (gSavedSettings.getBOOL("AutoLogin")) else if (gSavedSettings.getBOOL("AutoLogin"))
{ {
// Log into last account
gRememberPassword = TRUE; gRememberPassword = TRUE;
gSavedSettings.setBOOL("RememberPassword", TRUE); gSavedSettings.setBOOL("RememberPassword", TRUE);
show_connect_box = false; show_connect_box = false;
} }
else if (gSavedSettings.getLLSD("UserLoginInfo").size() == 3)
{
// Console provided login&password
gRememberPassword = gSavedSettings.getBOOL("RememberPassword");
show_connect_box = false;
}
else else
{ {
gRememberPassword = gSavedSettings.getBOOL("RememberPassword"); gRememberPassword = gSavedSettings.getBOOL("RememberPassword");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment