Remove code to allow unsafe authentication
This commit is contained in:
parent
d5f2c226ca
commit
519fd1f843
1 changed files with 2 additions and 10 deletions
|
@ -204,16 +204,8 @@ class ConnectionHandler
|
||||||
$permission = mysqli_fetch_assoc($result);
|
$permission = mysqli_fetch_assoc($result);
|
||||||
|
|
||||||
if (!strstr($permission['AccessPrivilege'], $accessPriv)) {
|
if (!strstr($permission['AccessPrivilege'], $accessPriv)) {
|
||||||
// no right to connect
|
// no permission
|
||||||
if ($AcceptUnknownUser) {
|
$reason = errorMsg(3013, $clientApplication, $domainName, $accessPriv);
|
||||||
// set an additionnal privilege for this player
|
|
||||||
$query = "UPDATE permission set AccessPrivilege='" . $permission['AccessPrivilege'] . ",$accessPriv' WHERE PermissionId=" . $permission['PermissionId'];
|
|
||||||
$result = mysqli_query($link, $query) or die(errorMsgBlock(3006, $query, 'main', $DBName, $DBHost, $DBUserName, mysqli_error($link)));
|
|
||||||
$reason = errorMsg(3012, $accessPriv);
|
|
||||||
} else {
|
|
||||||
// no permission
|
|
||||||
$reason = errorMsg(3013, $clientApplication, $domainName, $accessPriv);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// // check if the user not already online
|
// // check if the user not already online
|
||||||
// if ($row["State"] != "Offline") {
|
// if ($row["State"] != "Offline") {
|
||||||
|
|
Loading…
Reference in a new issue