* 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,7 +446,15 @@ 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"]);
|
||||||
retval.webLoginKey = new LLUUID((string)reader["webLoginKey"]);
|
|
||||||
|
if( reader.IsDBNull( reader.GetOrdinal( "webLoginKey" ) ) )
|
||||||
|
{
|
||||||
|
retval.webLoginKey = LLUUID.Random();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
retval.webLoginKey = new LLUUID((string)reader["webLoginKey"]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue