Skip to content
Snippets Groups Projects
Commit 6ea525f6 authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

MAINT-8120 Account that contains last name Resident cannot see his Favorites on Login Screen

parent d3ef8e02
No related branches found
No related tags found
No related merge requests found
......@@ -299,12 +299,24 @@ void LLPanelLogin::addFavoritesToStartLocation()
// Load favorites into the combo.
std::string user_defined_name = getChild<LLComboBox>("username_combo")->getSimple();
LLStringUtil::toLower(user_defined_name);
std::replace(user_defined_name.begin(), user_defined_name.end(), '.', ' ');
std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "stored_favorites_" + LLGridManager::getInstance()->getGrid() + ".xml");
std::string old_filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "stored_favorites.xml");
mUsernameLength = user_defined_name.length();
updateLoginButtons();
std::string::size_type index = user_defined_name.find(' ');
if (index != std::string::npos)
{
std::string username = user_defined_name.substr(0, index);
std::string lastname = user_defined_name.substr(index+1);
if (lastname == "resident")
{
user_defined_name = username;
}
}
LLSD fav_llsd;
llifstream file;
file.open(filename.c_str());
......
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