diff options
author | Jacek Antonelli | 2009-09-25 03:22:13 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-25 04:02:24 -0500 |
commit | f6be1049a5f71a97202eab28503a69a7ec5dfc04 (patch) | |
tree | cf203f08e682761d8e9159f66c81c512ebad9da9 /linden | |
parent | Reverted "grid-firstname_lastname" user directories. (diff) | |
download | meta-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')
-rw-r--r-- | linden/indra/newview/floaterlogin.cpp | 108 | ||||
-rw-r--r-- | linden/indra/newview/hippoGridManager.cpp | 18 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/floater_login.xml | 5 |
3 files changed, 68 insertions, 63 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 { |
diff --git a/linden/indra/newview/hippoGridManager.cpp b/linden/indra/newview/hippoGridManager.cpp index 56d585c..c7693af 100644 --- a/linden/indra/newview/hippoGridManager.cpp +++ b/linden/indra/newview/hippoGridManager.cpp | |||
@@ -543,9 +543,9 @@ void HippoGridManager::parseData(LLSD &gridInfo, bool mergeIfNewer) | |||
543 | if (gridMap.has("password")) grid->setPasswordUrl(gridMap["password"]); | 543 | if (gridMap.has("password")) grid->setPasswordUrl(gridMap["password"]); |
544 | //if (gridMap.has("search")) grid->setSearchUrl(gridMap["search"]); | 544 | //if (gridMap.has("search")) grid->setSearchUrl(gridMap["search"]); |
545 | if (gridMap.has("render_compat")) grid->setRenderCompat(gridMap["render_compat"]); | 545 | if (gridMap.has("render_compat")) grid->setRenderCompat(gridMap["render_compat"]); |
546 | if (gridMap.has("firstname")) grid->setFirstName(gridMap["firstname"]); | 546 | // if (gridMap.has("firstname")) grid->setFirstName(gridMap["firstname"]); |
547 | if (gridMap.has("lastname")) grid->setLastName(gridMap["lastname"]); | 547 | // if (gridMap.has("lastname")) grid->setLastName(gridMap["lastname"]); |
548 | if (gridMap.has("avatarpassword")) grid->setAvatarPassword(gridMap["avatarpassword"]); | 548 | // if (gridMap.has("avatarpassword")) grid->setAvatarPassword(gridMap["avatarpassword"]); |
549 | if (newGrid) addGrid(grid); | 549 | if (newGrid) addGrid(grid); |
550 | } | 550 | } |
551 | } | 551 | } |
@@ -573,14 +573,14 @@ void HippoGridManager::saveFile() | |||
573 | gridInfo[i]["loginpage"] = grid->getLoginPage(); | 573 | gridInfo[i]["loginpage"] = grid->getLoginPage(); |
574 | gridInfo[i]["helperuri"] = grid->getHelperUri(); | 574 | gridInfo[i]["helperuri"] = grid->getHelperUri(); |
575 | gridInfo[i]["website"] = grid->getWebSite(); | 575 | gridInfo[i]["website"] = grid->getWebSite(); |
576 | gridInfo[i]["support"] = grid->getSupportUrl(); | 576 | gridInfo[i]["support"] = grid->getSupportUrl(); |
577 | gridInfo[i]["register"] = grid->getRegisterUrl(); | 577 | gridInfo[i]["register"] = grid->getRegisterUrl(); |
578 | gridInfo[i]["password"] = grid->getPasswordUrl(); | 578 | gridInfo[i]["password"] = grid->getPasswordUrl(); |
579 | gridInfo[i]["firstname"] = grid->getFirstName(); | 579 | // gridInfo[i]["firstname"] = grid->getFirstName(); |
580 | gridInfo[i]["lastname"] = grid->getLastName(); | 580 | // gridInfo[i]["lastname"] = grid->getLastName(); |
581 | gridInfo[i]["avatarpassword"] = grid->getAvatarPassword(); | 581 | // gridInfo[i]["avatarpassword"] = grid->getAvatarPassword(); |
582 | 582 | ||
583 | //gridInfo[i]["search"] = grid->getSearchUrl(); | 583 | //gridInfo[i]["search"] = grid->getSearchUrl(); |
584 | gridInfo[i]["render_compat"] = grid->isRenderCompat(); | 584 | gridInfo[i]["render_compat"] = grid->isRenderCompat(); |
585 | } | 585 | } |
586 | 586 | ||
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_login.xml b/linden/indra/newview/skins/default/xui/en-us/floater_login.xml index 4c2146b..57e5978 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_login.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_login.xml | |||
@@ -49,6 +49,8 @@ | |||
49 | height="20" left_delta="90" max_length="40" mouse_opaque="true" | 49 | height="20" left_delta="90" max_length="40" mouse_opaque="true" |
50 | name="gridnick" select_all_on_focus_received="true" width="200" /> | 50 | name="gridnick" select_all_on_focus_received="true" width="200" /> |
51 | 51 | ||
52 | |||
53 | <!-- | ||
52 | <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 54 | <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
53 | bottom_delta="-23" drop_shadow_visible="true" follows="left|top" | 55 | bottom_delta="-23" drop_shadow_visible="true" follows="left|top" |
54 | font="SansSerif" h_pad="0" halign="left" height="16" | 56 | font="SansSerif" h_pad="0" halign="left" height="16" |
@@ -81,6 +83,7 @@ | |||
81 | follows="left|top|right" font="SansSerif" handle_edit_keys_directly="true" | 83 | follows="left|top|right" font="SansSerif" handle_edit_keys_directly="true" |
82 | height="20" left_delta="90" max_length="16" mouse_opaque="true" | 84 | height="20" left_delta="90" max_length="16" mouse_opaque="true" |
83 | name="avatar_password" select_all_on_focus_received="true" width="200" /> | 85 | name="avatar_password" select_all_on_focus_received="true" width="200" /> |
86 | --> | ||
84 | 87 | ||
85 | 88 | ||
86 | <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 89 | <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
@@ -260,4 +263,4 @@ | |||
260 | left_delta="135" max_chars="40" mouse_opaque="true" | 263 | left_delta="135" max_chars="40" mouse_opaque="true" |
261 | name="server_combo" width="200" /> | 264 | name="server_combo" width="200" /> |
262 | --> | 265 | --> |
263 | </floater> \ No newline at end of file | 266 | </floater> |