aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.h
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-03-22 01:59:52 -0700
committerMcCabe Maxsted2011-03-22 01:59:52 -0700
commit9e11339ee6be8161c676fe16c34edb5bc089a9bf (patch)
treeb6a2a1bd49a1ba4cc02a5898c1746e1df8327580 /linden/indra/newview/llpanellogin.h
parentFixed tab order on login screen (diff)
downloadmeta-impy-9e11339ee6be8161c676fe16c34edb5bc089a9bf.zip
meta-impy-9e11339ee6be8161c676fe16c34edb5bc089a9bf.tar.gz
meta-impy-9e11339ee6be8161c676fe16c34edb5bc089a9bf.tar.bz2
meta-impy-9e11339ee6be8161c676fe16c34edb5bc089a9bf.tar.xz
Support username logins on Linden grids. Seems to cover most edge cases with our current grid manager, but really exposes the weaknesses of not saving login info with the grid, usability-wise. (Note: autologin and the command line need to be tested)
Diffstat (limited to 'linden/indra/newview/llpanellogin.h')
-rw-r--r--linden/indra/newview/llpanellogin.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/linden/indra/newview/llpanellogin.h b/linden/indra/newview/llpanellogin.h
index 5830b52..947aea6 100644
--- a/linden/indra/newview/llpanellogin.h
+++ b/linden/indra/newview/llpanellogin.h
@@ -59,9 +59,9 @@ public:
59 void (*callback)(S32 option, void* user_data), 59 void (*callback)(S32 option, void* user_data),
60 void* callback_data); 60 void* callback_data);
61 61
62 // Remember password checkbox is set via gSavedSettings "RememberPassword" 62 // Sets the login screen's name and password editors. Remember password checkbox is set via gSavedSettings "RememberPassword"
63 static void setFields(const std::string& firstname, const std::string& lastname, 63 static void setFields(const std::string& firstname, const std::string& lastname, const std::string& password);
64 const std::string& password); 64 static void setFields(const std::string& username, const std::string& password);
65 65
66 static void addServer(const std::string& server); 66 static void addServer(const std::string& server);
67 static void refreshLocation( bool force_visible ); 67 static void refreshLocation( bool force_visible );
@@ -78,6 +78,7 @@ public:
78 78
79 void setSiteIsAlive( bool alive ); 79 void setSiteIsAlive( bool alive );
80 80
81 static void loadLoginForm();
81 static void loadLoginPage(); 82 static void loadLoginPage();
82 static void refreshLoginPage(); 83 static void refreshLoginPage();
83 static void giveFocus(); 84 static void giveFocus();
@@ -101,8 +102,19 @@ private:
101 static void onPassKey(LLLineEditor* caller, void* user_data); 102 static void onPassKey(LLLineEditor* caller, void* user_data);
102 static void onSelectServer(LLUICtrl*, void*); 103 static void onSelectServer(LLUICtrl*, void*);
103 static void onServerComboLostFocus(LLFocusableElement*, void*); 104 static void onServerComboLostFocus(LLFocusableElement*, void*);
105
106 // converts the following login name formats into valid firstname lastname combos:
107 // username
108 // username.Resident
109 // first.last
110 // first+" "+last
111 // " "+first+" "+last+" "
112 // returns true if name conversion successful
113 static bool convertUsernameToLegacy(std::string& username, std::string& firstname, std::string& lastname);
114
115 // set the password for the login screen
116 static void setPassword(const std::string& password);
104 117
105private:
106 LLPointer<LLUIImage> mLogoImage; 118 LLPointer<LLUIImage> mLogoImage;
107 119
108 void (*mCallback)(S32 option, void *userdata); 120 void (*mCallback)(S32 option, void *userdata);