security fix for reseller Accounts

This commit is contained in:
ice123123123 2017-12-19 20:09:12 +01:00 committed by GitHub
parent 82606c11a5
commit e38f3be21b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ if ($ui->id('id', 19, 'get')) {
$sql = null; $sql = null;
if ($row['accounttype'] == 'u') { if ($row['accounttype'] == 'u' && $row['resellerid'] == $reseller_id) {
$_SESSION['userid'] = $ui->id('id', 19, 'get'); $_SESSION['userid'] = $ui->id('id', 19, 'get');
@ -103,4 +103,4 @@ if ($ui->id('id', 19, 'get')) {
} }
} }
$sql = null; $sql = null;
redirect('login.php'); redirect('login.php');