Also trim if() statement

(cherry picked from commit d6601c8f00)
This commit is contained in:
Augustin-FL 2019-02-04 22:45:57 +01:00 committed by jim-p
parent a9a90af672
commit ef2e3b5d2b

View File

@ -188,7 +188,7 @@ EOD;
$user = $clientmac;
$passwd = $cpcfg['radmac_secret'];
$context = 'radmac'; // Radius MAC authentication
} elseif (!empty($_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