Merge pull request #4037 from heper/patch-1

This commit is contained in:
Renato Botelho 2019-05-31 11:35:27 -03:00
commit 1e005a0239

View File

@ -188,12 +188,12 @@ EOD;
$user = $clientmac;
$passwd = $cpcfg['radmac_secret'];
$context = 'radmac'; // Radius MAC authentication
} elseif (!empty($_POST['auth_user2'])) {
$user = $_POST['auth_user2'];
} elseif (!empty(trim($_POST['auth_user2']))) {
$user = trim($_POST['auth_user2']);
$passwd = $_POST['auth_pass2'];
$context = 'second'; // Assume users to use the first context if auth_user2 is empty/does not exist
} else {
$user = $_POST['auth_user'];
$user = trim($_POST['auth_user']);
$passwd = $_POST['auth_pass'];
$context = 'first';
}