Commit d7850392 authored by Franco Fichtner's avatar Franco Fichtner

captive portal: redirect on good voucher too; fixes #121

parent 57ecaa3b
......@@ -162,6 +162,7 @@ EOD;
if (portal_allow($clientip, $clientmac,$voucher,null,$attr)) {
// YES: user is good for $timecredit minutes.
captiveportal_logportalauth($voucher,$clientmac,$clientip,"Voucher login good for $timecredit min.");
portal_reply_page($redirurl, "redir", "Just redirect the user.");
} else {
portal_reply_page($redirurl, "error", $config['voucher'][$cpzone]['msgexpired'] ? $config['voucher'][$cpzone]['msgexpired']: $errormsg);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment