aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/floaterlogin.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-09-25 03:22:13 -0500
committerJacek Antonelli2009-09-25 04:02:24 -0500
commitf6be1049a5f71a97202eab28503a69a7ec5dfc04 (patch)
treecf203f08e682761d8e9159f66c81c512ebad9da9 /linden/indra/newview/floaterlogin.cpp
parentReverted "grid-firstname_lastname" user directories. (diff)
downloadmeta-impy-f6be1049a5f71a97202eab28503a69a7ec5dfc04.zip
meta-impy-f6be1049a5f71a97202eab28503a69a7ec5dfc04.tar.gz
meta-impy-f6be1049a5f71a97202eab28503a69a7ec5dfc04.tar.bz2
meta-impy-f6be1049a5f71a97202eab28503a69a7ec5dfc04.tar.xz
Disabled avatar name and password fields in grid manager.
Temporary, until we implement a decent account manager.
Diffstat (limited to 'linden/indra/newview/floaterlogin.cpp')
-rw-r--r--linden/indra/newview/floaterlogin.cpp108
1 files changed, 55 insertions, 53 deletions
diff --git a/linden/indra/newview/floaterlogin.cpp b/linden/indra/newview/floaterlogin.cpp
index 6519962..17e4d0c 100644
--- a/linden/indra/newview/floaterlogin.cpp
+++ b/linden/indra/newview/floaterlogin.cpp
@@ -194,27 +194,28 @@ void LoginFloater::refresh_grids()
194 sInstance->childSetText("helperuri", gridInfo->getHelperUri()); 194 sInstance->childSetText("helperuri", gridInfo->getHelperUri());
195 sInstance->childSetText("website", gridInfo->getWebSite()); 195 sInstance->childSetText("website", gridInfo->getWebSite());
196 sInstance->childSetText("support", gridInfo->getSupportUrl()); 196 sInstance->childSetText("support", gridInfo->getSupportUrl());
197 sInstance->childSetText("register", gridInfo->getRegisterUrl()); 197 sInstance->childSetText("register", gridInfo->getRegisterUrl());
198 sInstance->childSetText("password", gridInfo->getPasswordUrl()); 198 sInstance->childSetText("password", gridInfo->getPasswordUrl());
199 sInstance->childSetText("first_name", gridInfo->getFirstName()); 199
200 sInstance->childSetText("last_name", gridInfo->getLastName()); 200 // sInstance->childSetText("first_name", gridInfo->getFirstName());
201 if(gridInfo->getAvatarPassword().length() == 32) 201 // sInstance->childSetText("last_name", gridInfo->getLastName());
202 sInstance->childSetText("avatar_password", std::string(PASSWORD_FILLER)); 202 // if(gridInfo->getAvatarPassword().length() == 32)
203 else if(gridInfo->getPasswordUrl().empty()) 203 // sInstance->childSetText("avatar_password", std::string(PASSWORD_FILLER));
204 sInstance->childSetText("avatar_password", std::string("")); 204 // else if(gridInfo->getPasswordUrl().empty())
205/* 205 // sInstance->childSetText("avatar_password", std::string(""));
206 if (gridInfo->getPlatform() == HippoGridInfo::PLATFORM_SECONDLIFE) { 206
207 //childSetEnabled("search", false); 207 // if (gridInfo->getPlatform() == HippoGridInfo::PLATFORM_SECONDLIFE) {
208 //childSetText("search", LLStringExplicit("")); 208 // //childSetEnabled("search", false);
209 childSetEnabled("render_compat", false); 209 // //childSetText("search", LLStringExplicit(""));
210 childSetValue("render_compat", false); 210 // childSetEnabled("render_compat", false);
211 } else { 211 // childSetValue("render_compat", false);
212 //childSetEnabled("search", true); 212 // } else {
213 //childSetText("search", gridInfo->getSearchUrl()); 213 // //childSetEnabled("search", true);
214 childSetEnabled("render_compat", true); 214 // //childSetText("search", gridInfo->getSearchUrl());
215 childSetValue("render_compat", gridInfo->isRenderCompat()); 215 // childSetEnabled("render_compat", true);
216 } 216 // childSetValue("render_compat", gridInfo->isRenderCompat());
217 */ 217 // }
218
218 } else { 219 } else {
219 std::string empty = ""; 220 std::string empty = "";
220 sInstance->childSetText("gridnick", empty); 221 sInstance->childSetText("gridnick", empty);
@@ -223,9 +224,9 @@ void LoginFloater::refresh_grids()
223 sInstance->childSetText("loginpage", empty); 224 sInstance->childSetText("loginpage", empty);
224 sInstance->childSetText("helperuri", empty); 225 sInstance->childSetText("helperuri", empty);
225 sInstance->childSetText("website", empty); 226 sInstance->childSetText("website", empty);
226 sInstance->childSetText("first_name", empty); 227 // sInstance->childSetText("first_name", empty);
227 sInstance->childSetText("last_name", empty); 228 // sInstance->childSetText("last_name", empty);
228 sInstance->childSetText("avatar_password", empty); 229 // sInstance->childSetText("avatar_password", empty);
229 } 230 }
230 } else if (sInstance->mState == ADD_NEW) { 231 } else if (sInstance->mState == ADD_NEW) {
231 llwarns << "ADD_NEW" << llendl; 232 llwarns << "ADD_NEW" << llendl;
@@ -240,9 +241,9 @@ void LoginFloater::refresh_grids()
240 sInstance->childSetText("support", empty); 241 sInstance->childSetText("support", empty);
241 sInstance->childSetText("register", empty); 242 sInstance->childSetText("register", empty);
242 sInstance->childSetText("password", empty); 243 sInstance->childSetText("password", empty);
243 sInstance->childSetText("first_name", empty); 244 // sInstance->childSetText("first_name", empty);
244 sInstance->childSetText("last_name", empty); 245 // sInstance->childSetText("last_name", empty);
245 sInstance->childSetText("avatar_password", empty); 246 // sInstance->childSetText("avatar_password", empty);
246 //childSetEnabled("search", true); 247 //childSetEnabled("search", true);
247 //childSetText("search", empty); 248 //childSetText("search", empty);
248 } else if (sInstance->mState == ADD_COPY) { 249 } else if (sInstance->mState == ADD_COPY) {
@@ -275,23 +276,24 @@ void LoginFloater::applyChanges()
275 gridInfo->setHelperUri(childGetValue("helperuri")); 276 gridInfo->setHelperUri(childGetValue("helperuri"));
276 gridInfo->setWebSite(childGetValue("website")); 277 gridInfo->setWebSite(childGetValue("website"));
277 gridInfo->setSupportUrl(childGetValue("support")); 278 gridInfo->setSupportUrl(childGetValue("support"));
278 gridInfo->setRegisterUrl(childGetValue("register")); 279 gridInfo->setRegisterUrl(childGetValue("register"));
279 gridInfo->setPasswordUrl(childGetValue("password")); 280 gridInfo->setPasswordUrl(childGetValue("password"));
280 gridInfo->setFirstName(childGetValue("first_name"));
281 gridInfo->setLastName(childGetValue("last_name"));
282 //gridInfo->setSearchUrl(childGetValue("search")); 281 //gridInfo->setSearchUrl(childGetValue("search"));
283 gridInfo->setRenderCompat(childGetValue("render_compat")); 282 gridInfo->setRenderCompat(childGetValue("render_compat"));
284 283
285 if(childGetValue("avatar_password").asString().empty()) 284 // gridInfo->setFirstName(childGetValue("first_name"));
286 gridInfo->setAvatarPassword(std::string("")); 285 // gridInfo->setLastName(childGetValue("last_name"));
287 else if(childGetValue("avatar_password").asString() != std::string(PASSWORD_FILLER)) 286 // if(childGetValue("avatar_password").asString().empty())
288 { 287 // gridInfo->setAvatarPassword(std::string(""));
289 // store account authentication data 288 // else if(childGetValue("avatar_password").asString() != std::string(PASSWORD_FILLER))
290 std::string auth_password = childGetValue("avatar_password"); 289 // {
291 std::string hashed_password; 290 // // store account authentication data
292 hashPassword(auth_password, hashed_password); 291 // std::string auth_password = childGetValue("avatar_password");
293 gridInfo->setAvatarPassword(hashed_password); 292 // std::string hashed_password;
294 } 293 // hashPassword(auth_password, hashed_password);
294 // gridInfo->setAvatarPassword(hashed_password);
295 // }
296
295 //this bug was a feature -Patrick Sapinski (Friday, August 21, 2009) 297 //this bug was a feature -Patrick Sapinski (Friday, August 21, 2009)
296 //LLPanelLogin::setFields(gridInfo->getFirstName(), gridInfo->getLastName(), 298 //LLPanelLogin::setFields(gridInfo->getFirstName(), gridInfo->getLastName(),
297 // gridInfo->getAvatarPassword(), true); 299 // gridInfo->getAvatarPassword(), true);
@@ -339,22 +341,22 @@ bool LoginFloater::createNewGrid()
339 grid->setHelperUri(childGetValue("helperuri")); 341 grid->setHelperUri(childGetValue("helperuri"));
340 grid->setWebSite(childGetValue("website")); 342 grid->setWebSite(childGetValue("website"));
341 grid->setSupportUrl(childGetValue("support")); 343 grid->setSupportUrl(childGetValue("support"));
342 grid->setRegisterUrl(childGetValue("register")); 344 grid->setRegisterUrl(childGetValue("register"));
343 grid->setPasswordUrl(childGetValue("password")); 345 grid->setPasswordUrl(childGetValue("password"));
344 grid->setFirstName(childGetValue("first_name"));
345 grid->setLastName(childGetValue("last_name"));
346 //grid->setSearchUrl(childGetValue("search")); 346 //grid->setSearchUrl(childGetValue("search"));
347 grid->setRenderCompat(childGetValue("render_compat")); 347 grid->setRenderCompat(childGetValue("render_compat"));
348 gHippoGridManager->addGrid(grid); 348 gHippoGridManager->addGrid(grid);
349 349
350 if(childGetValue("avatar_password").asString().empty()) 350 // grid->setFirstName(childGetValue("first_name"));
351 grid->setAvatarPassword(std::string("")); 351 // grid->setLastName(childGetValue("last_name"));
352 else 352 // if(childGetValue("avatar_password").asString().empty())
353 { 353 // grid->setAvatarPassword(std::string(""));
354 std::string hashed_password; 354 // else
355 hashPassword(childGetValue("avatar_password"), hashed_password); 355 // {
356 grid->setAvatarPassword(hashed_password); 356 // std::string hashed_password;
357 } 357 // hashPassword(childGetValue("avatar_password"), hashed_password);
358 // grid->setAvatarPassword(hashed_password);
359 // }
358 360
359 mCurGrid = gridnick; 361 mCurGrid = gridnick;
360 return true; 362 return true;
@@ -392,8 +394,8 @@ void LoginFloater::retrieveGridInfo()
392 if (grid->getLoginPage() != "") childSetText("loginpage", grid->getLoginPage()); 394 if (grid->getLoginPage() != "") childSetText("loginpage", grid->getLoginPage());
393 if (grid->getHelperUri() != "") childSetText("helperuri", grid->getHelperUri()); 395 if (grid->getHelperUri() != "") childSetText("helperuri", grid->getHelperUri());
394 if (grid->getWebSite() != "") childSetText("website", grid->getWebSite()); 396 if (grid->getWebSite() != "") childSetText("website", grid->getWebSite());
395 if (grid->getSupportUrl() != "") childSetText("support", grid->getSupportUrl()); 397 if (grid->getSupportUrl() != "") childSetText("support", grid->getSupportUrl());
396 if (grid->getRegisterUrl() != "") childSetText("register", grid->getRegisterUrl()); 398 if (grid->getRegisterUrl() != "") childSetText("register", grid->getRegisterUrl());
397 if (grid->getPasswordUrl() != "") childSetText("password", grid->getPasswordUrl()); 399 if (grid->getPasswordUrl() != "") childSetText("password", grid->getPasswordUrl());
398 //if (grid->getSearchUrl() != "") childSetText("search", grid->getSearchUrl()); 400 //if (grid->getSearchUrl() != "") childSetText("search", grid->getSearchUrl());
399 } else { 401 } else {