mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Put out a more comprehensible message when user authentication fails than the current NullReferenceException based one
This commit is contained in:
@@ -61,16 +61,6 @@ namespace OpenSim.Framework.Data.MSSQL
|
||||
database = new MSSQLManager(settingDataSource, settingInitialCatalog, settingPersistSecurityInfo, settingUserId, settingPassword);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Searches the database for a specified user profile
|
||||
/// </summary>
|
||||
/// <param name="name">The account name of the user</param>
|
||||
/// <returns>A user profile</returns>
|
||||
public UserProfileData GetUserByName(string name)
|
||||
{
|
||||
return GetUserByName(name.Split(' ')[0], name.Split(' ')[1]);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Searches the database for a specified user profile by name components
|
||||
/// </summary>
|
||||
@@ -188,11 +178,7 @@ namespace OpenSim.Framework.Data.MSSQL
|
||||
return returnlist;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Searches the database for a specified user profile by UUID
|
||||
/// </summary>
|
||||
/// <param name="uuid">The account ID</param>
|
||||
/// <returns>The users profile</returns>
|
||||
// See IUserData
|
||||
public UserProfileData GetUserByUUID(LLUUID uuid)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user