From 019d6626068920283b700440e780c86c162ca7c6 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Sat, 15 Dec 2007 21:58:07 +0000
Subject: Put out a more comprehensible message when user authentication fails
than the current NullReferenceException based one
---
OpenSim/Framework/Data.SQLite/SQLiteUserData.cs | 23 ++---------------------
1 file changed, 2 insertions(+), 21 deletions(-)
(limited to 'OpenSim/Framework/Data.SQLite')
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
return;
}
- ///
- /// Loads a specified user profile from a UUID
- ///
- /// The user's UUID
- /// A user profile
+ // see IUserData
public UserProfileData GetUserByUUID(LLUUID uuid)
{
lock (ds)
@@ -99,22 +95,7 @@ namespace OpenSim.Framework.Data.SQLite
}
}
- ///
- /// Returns a user by searching for its name
- ///
- /// The user's account name
- /// A matching user profile
- public UserProfileData GetUserByName(string name)
- {
- return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]);
- }
-
- ///
- /// Returns a user by searching for its name
- ///
- /// The first part of the user's account name
- /// The second part of the user's account name
- /// A matching user profile
+ // see IUserData
public UserProfileData GetUserByName(string fname, string lname)
{
string select = "surname = '" + lname + "' and username = '" + fname + "'";
--
cgit v1.1