diff options
author | Ermal <eri@pfsense.org> | 2011-05-25 20:28:10 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-25 20:28:10 +0000 |
commit | 05771a248503a0af661195f3e8759fc04370ea2b (patch) | |
tree | 4f6cae2c4046c580a2624f49dbb66514142d2802 /usr/local/www/services_captiveportal_vouchers.php | |
parent | dceff62e8144b56cb292e1a3fd69abe307072625 (diff) | |
download | pfsense-05771a248503a0af661195f3e8759fc04370ea2b.zip pfsense-05771a248503a0af661195f3e8759fc04370ea2b.tar.gz |
Provide a voucher_expire function so that voucher can be expired through a POST.
Diffstat (limited to 'usr/local/www/services_captiveportal_vouchers.php')
-rw-r--r-- | usr/local/www/services_captiveportal_vouchers.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php index 19171f4..d5c8347 100644 --- a/usr/local/www/services_captiveportal_vouchers.php +++ b/usr/local/www/services_captiveportal_vouchers.php @@ -163,6 +163,12 @@ $pconfig['vouchersyncusername'] = $config['voucher']['vouchersyncusername']; if ($_POST) { unset($input_errors); + + if ($_POST['postafterlogin']) { + voucher_expire($_POST['voucher_expire']); + exit; + } + $pconfig = $_POST; /* input validation */ |