I dub thee working. Maybe.
parent
dced1d3df9
commit
89a6d6bab7
|
@ -48,7 +48,9 @@ namespace OpenGrid.Framework.Data.MySQL
|
||||||
if (throwHissyFit)
|
if (throwHissyFit)
|
||||||
throw new Exception("CRYPTOWEAK AUTHENTICATE: Refusing to authenticate due to replay potential.");
|
throw new Exception("CRYPTOWEAK AUTHENTICATE: Refusing to authenticate due to replay potential.");
|
||||||
|
|
||||||
return true;
|
SimProfileData data = GetProfileByLLUUID(uuid);
|
||||||
|
|
||||||
|
return (handle == data.regionHandle && authkey == data.regionSecret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -85,10 +85,10 @@ namespace OpenGrid.Framework.Data.MySQL
|
||||||
|
|
||||||
// Region Server
|
// Region Server
|
||||||
retval.regionDataURI = (string)reader["regionDataURI"];
|
retval.regionDataURI = (string)reader["regionDataURI"];
|
||||||
retval.regionOnline = false;
|
retval.regionOnline = false; // Needs to be pinged before this can be set.
|
||||||
retval.serverIP = "";
|
retval.serverIP = (string)reader["serverIP"];
|
||||||
retval.serverPort = 0;
|
retval.serverPort = (uint)reader["serverPort"];
|
||||||
retval.serverURI = "";
|
retval.serverURI = (string)reader["serverURI"];
|
||||||
|
|
||||||
// Location
|
// Location
|
||||||
retval.regionLocX = (uint)((int)reader["locX"]);
|
retval.regionLocX = (uint)((int)reader["locX"]);
|
||||||
|
@ -103,7 +103,7 @@ namespace OpenGrid.Framework.Data.MySQL
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return null;
|
throw new Exception("No rows to return");
|
||||||
}
|
}
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue