mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
captive portal: redirect on good voucher too; fixes #121
This commit is contained in:
parent
57ecaa3b55
commit
d785039242
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user