Allow people with last name "Resident" to login using Hippogrid manager.

This commit is contained in:
Aleric Inglewood
2012-10-30 07:16:01 +01:00
parent 65e012c540
commit 3e78b7c262
5 changed files with 37 additions and 18 deletions

View File

@@ -145,6 +145,22 @@ const LLSD LLSavedLoginEntry::encryptPassword(const std::string& password)
return pwdata;
}
bool LLSavedLoginEntry::isSecondLife() const
{
if (!mEntry.has("grid"))
{
return false;
}
std::string name = mEntry.get("grid").asString();
HippoGridInfo* grid_info = gHippoGridManager->getGrid(name);
llassert(grid_info);
if (!grid_info)
{
return name.substr(0, 11) == "Second Life";
}
return grid_info->isSecondLife();
}
//---------------------------------------------------------------------------
// LLSavedLogins methods
//---------------------------------------------------------------------------