* quick fix to fix if webLoginKey is null in DB, return random key (I guess LLUUID.Zero would be a security hazard)
parent
901f403823
commit
8ccc470e2a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue