diff options
author | Justin Clarke Casey | 2007-12-15 21:58:07 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2007-12-15 21:58:07 +0000 |
commit | 019d6626068920283b700440e780c86c162ca7c6 (patch) | |
tree | 7c0a9ec1ca185257cee0463a73feef882be23878 /OpenSim/Framework/Data | |
parent | more dorking around with exporter. Still far (diff) | |
download | opensim-SC-019d6626068920283b700440e780c86c162ca7c6.zip opensim-SC-019d6626068920283b700440e780c86c162ca7c6.tar.gz opensim-SC-019d6626068920283b700440e780c86c162ca7c6.tar.bz2 opensim-SC-019d6626068920283b700440e780c86c162ca7c6.tar.xz |
Put out a more comprehensible message when user authentication fails than the current NullReferenceException based one
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs | 16 | ||||
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLUserData.cs | 23 | ||||
-rw-r--r-- | OpenSim/Framework/Data.SQLite/SQLiteUserData.cs | 23 |
3 files changed, 5 insertions, 57 deletions
diff --git a/OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs b/OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs index c235e96..80b65c1 100644 --- a/OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs +++ b/OpenSim/Framework/Data.MSSQL/MSSQLUserData.cs | |||
@@ -62,16 +62,6 @@ namespace OpenSim.Framework.Data.MSSQL | |||
62 | } | 62 | } |
63 | 63 | ||
64 | /// <summary> | 64 | /// <summary> |
65 | /// Searches the database for a specified user profile | ||
66 | /// </summary> | ||
67 | /// <param name="name">The account name of the user</param> | ||
68 | /// <returns>A user profile</returns> | ||
69 | public UserProfileData GetUserByName(string name) | ||
70 | { | ||
71 | return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]); | ||
72 | } | ||
73 | |||
74 | /// <summary> | ||
75 | /// Searches the database for a specified user profile by name components | 65 | /// Searches the database for a specified user profile by name components |
76 | /// </summary> | 66 | /// </summary> |
77 | /// <param name="user">The first part of the account name</param> | 67 | /// <param name="user">The first part of the account name</param> |
@@ -188,11 +178,7 @@ namespace OpenSim.Framework.Data.MSSQL | |||
188 | return returnlist; | 178 | return returnlist; |
189 | } | 179 | } |
190 | 180 | ||
191 | /// <summary> | 181 | // See IUserData |
192 | /// Searches the database for a specified user profile by UUID | ||
193 | /// </summary> | ||
194 | /// <param name="uuid">The account ID</param> | ||
195 | /// <returns>The users profile</returns> | ||
196 | public UserProfileData GetUserByUUID(LLUUID uuid) | 182 | public UserProfileData GetUserByUUID(LLUUID uuid) |
197 | { | 183 | { |
198 | try | 184 | try |
diff --git a/OpenSim/Framework/Data.MySQL/MySQLUserData.cs b/OpenSim/Framework/Data.MySQL/MySQLUserData.cs index e5cbe45..6a7cf49 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLUserData.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLUserData.cs | |||
@@ -113,23 +113,8 @@ namespace OpenSim.Framework.Data.MySQL | |||
113 | } | 113 | } |
114 | 114 | ||
115 | #endregion | 115 | #endregion |
116 | |||
117 | /// <summary> | ||
118 | /// Searches the database for a specified user profile | ||
119 | /// </summary> | ||
120 | /// <param name="name">The account name of the user</param> | ||
121 | /// <returns>A user profile</returns> | ||
122 | public UserProfileData GetUserByName(string name) | ||
123 | { | ||
124 | return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]); | ||
125 | } | ||
126 | 116 | ||
127 | /// <summary> | 117 | // see IUserData |
128 | /// Searches the database for a specified user profile by name components | ||
129 | /// </summary> | ||
130 | /// <param name="user">The first part of the account name</param> | ||
131 | /// <param name="last">The second part of the account name</param> | ||
132 | /// <returns>A user profile</returns> | ||
133 | public UserProfileData GetUserByName(string user, string last) | 118 | public UserProfileData GetUserByName(string user, string last) |
134 | { | 119 | { |
135 | try | 120 | try |
@@ -244,11 +229,7 @@ namespace OpenSim.Framework.Data.MySQL | |||
244 | return returnlist; | 229 | return returnlist; |
245 | } | 230 | } |
246 | 231 | ||
247 | /// <summary> | 232 | // see IUserData |
248 | /// Searches the database for a specified user profile by UUID | ||
249 | /// </summary> | ||
250 | /// <param name="uuid">The account ID</param> | ||
251 | /// <returns>The users profile</returns> | ||
252 | public UserProfileData GetUserByUUID(LLUUID uuid) | 233 | public UserProfileData GetUserByUUID(LLUUID uuid) |
253 | { | 234 | { |
254 | try | 235 | try |
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs index da27277..346febc 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteUserData.cs | |||
@@ -72,11 +72,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
72 | return; | 72 | return; |
73 | } | 73 | } |
74 | 74 | ||
75 | /// <summary> | 75 | // see IUserData |
76 | /// Loads a specified user profile from a UUID | ||
77 | /// </summary> | ||
78 | /// <param name="uuid">The user's UUID</param> | ||
79 | /// <returns>A user profile</returns> | ||
80 | public UserProfileData GetUserByUUID(LLUUID uuid) | 76 | public UserProfileData GetUserByUUID(LLUUID uuid) |
81 | { | 77 | { |
82 | lock (ds) | 78 | lock (ds) |
@@ -99,22 +95,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
99 | } | 95 | } |
100 | } | 96 | } |
101 | 97 | ||
102 | /// <summary> | 98 | // see IUserData |
103 | /// Returns a user by searching for its name | ||
104 | /// </summary> | ||
105 | /// <param name="name">The user's account name</param> | ||
106 | /// <returns>A matching user profile</returns> | ||
107 | public UserProfileData GetUserByName(string name) | ||
108 | { | ||
109 | return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]); | ||
110 | } | ||
111 | |||
112 | /// <summary> | ||
113 | /// Returns a user by searching for its name | ||
114 | /// </summary> | ||
115 | /// <param name="fname">The first part of the user's account name</param> | ||
116 | /// <param name="lname">The second part of the user's account name</param> | ||
117 | /// <returns>A matching user profile</returns> | ||
118 | public UserProfileData GetUserByName(string fname, string lname) | 99 | public UserProfileData GetUserByName(string fname, string lname) |
119 | { | 100 | { |
120 | string select = "surname = '" + lname + "' and username = '" + fname + "'"; | 101 | string select = "surname = '" + lname + "' and username = '" + fname + "'"; |