summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_vouchers.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-25 20:28:10 +0000
committerErmal <eri@pfsense.org>2011-05-25 20:28:10 +0000
commit05771a248503a0af661195f3e8759fc04370ea2b (patch)
tree4f6cae2c4046c580a2624f49dbb66514142d2802 /usr/local/www/services_captiveportal_vouchers.php
parentdceff62e8144b56cb292e1a3fd69abe307072625 (diff)
downloadpfsense-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.php6
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 */
OpenPOWER on IntegriCloud