summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-17 11:34:44 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-02-17 11:34:44 -0300
commit5705c60a24ce8a5887dda0f7c1a73231de42827e (patch)
treee03f1e22e4292db3ff8904fd043842259a05eb22 /etc/inc/voucher.inc
parent290296cdc05747b65145077e2715e7c4e2ae60aa (diff)
downloadpfsense-5705c60a24ce8a5887dda0f7c1a73231de42827e.zip
pfsense-5705c60a24ce8a5887dda0f7c1a73231de42827e.tar.gz
Revert "Merge pull request #417 from miken32/cp-database-fix"
It breaks customizations, it's not a good time for such big change. This reverts commit 40c7b1a98bfdc61261154adaac5fdefc234ecb08, reversing changes made to d896f86751bae79625197da6c80d709fdf185448.
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index 4232289..5b392bb 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -257,8 +257,8 @@ function voucher_expire($voucher_received) {
$cpentry = captiveportal_read_db("WHERE username = '{$voucher}'");
if (!empty($cpentry)) {
captiveportal_disconnect($cpentry,null,13);
- captiveportal_logportalauth($cpentry['username'],$cpentry['mac'],$cpentry['ip'],"FORCLY TERMINATING VOUCHER {$voucher} SESSION");
- $unsetindexes[] = $cpentry['sessionid'];
+ captiveportal_logportalauth($cpentry[4],$cpentry[3],$cpentry[2],"FORCLY TERMINATING VOUCHER {$voucher} SESSION");
+ $unsetindexes[] = $cpentry[5];
}
} else
captiveportal_syslog("$voucher ($roll/$nr): not found on any registererd Roll");
OpenPOWER on IntegriCloud