Copy sourceid= from create_account_url to login-page URL.

This allows the login-page server to respond to any sourceid= associated with
the create_account_url, which (we happen to know) varies by skin -- e.g. for
the Steam viewer.
meow-7.2.2
Nat Goodspeed 2012-08-31 11:58:25 -04:00
parent 488362b0ac
commit f346cbbdeb
1 changed files with 8 additions and 0 deletions

View File

@ -771,6 +771,14 @@ void LLPanelLogin::loadLoginPage()
// add OS info
params["os"] = LLAppViewer::instance()->getOSInfo().getOSStringSimple();
// sourceid: create_account_url's sourceid= varies by skin
LLURI create_account_url(LLTrans::getString("create_account_url"));
LLSD create_account_params(create_account_url.queryMap());
if (create_account_params.has("sourceid"))
{
params["sourceid"] = create_account_params["sourceid"];
}
// Make an LLURI with this augmented info
LLURI login_uri(LLURI::buildHTTP(login_page.authority(),
login_page.path(),