Bug in Captive Portal voucher system
-
I'm posting this again since this is still not working in
2.1-DEV, snapshot from Wed May 2 10:06:09 EDT 2012Description:
When using captive portal with local user manager, any attempt to enter a voucher will result in "Invalid credentials specified". Doesn't matter if the voucher is valid or not.Fix:
Add an isset() around the $config['voucher'][$cpzone]['enable'] in line 143 /usr/local/captiveportal/index.phplike so:
} else if (isset($config['voucher'][$cpzone]['enable']) && $_POST['accept'] && $_POST['auth_voucher']) {
-
fixed, thanks