* quick fix to fix if webLoginKey is null in DB, return random key (I guess LLUUID.Zero would be a security hazard)

ThreadPoolClientBranch
lbsa71 2008-01-11 07:41:14 +00:00
parent 901f403823
commit 8ccc470e2a
1 changed files with 9 additions and 1 deletions

View File

@ -446,8 +446,16 @@ namespace OpenSim.Framework.Data.MySQL
retval.profileImage = new LLUUID((string) reader["profileImage"]); retval.profileImage = new LLUUID((string) reader["profileImage"]);
retval.profileFirstImage = new LLUUID((string) reader["profileFirstImage"]); retval.profileFirstImage = new LLUUID((string) reader["profileFirstImage"]);
if( reader.IsDBNull( reader.GetOrdinal( "webLoginKey" ) ) )
{
retval.webLoginKey = LLUUID.Random();
}
else
{
retval.webLoginKey = new LLUUID((string)reader["webLoginKey"]); retval.webLoginKey = new LLUUID((string)reader["webLoginKey"]);
} }
}
else else
{ {
return null; return null;