summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-03 23:01:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-03 23:01:03 +0000
commit00b20405f59d484382c6c42de2d2f40795f30313 (patch)
treea2b5aa22908dc89aed5259212119134890576c5a /etc/inc
parenteccd429a9f5b713c3713737effedcd0925efa1da (diff)
downloadpfsense-00b20405f59d484382c6c42de2d2f40795f30313.zip
pfsense-00b20405f59d484382c6c42de2d2f40795f30313.tar.gz
Actually disconnect a user correctly
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/captiveportal.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index c013490..5e0f788 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -319,12 +319,15 @@ function captiveportal_disconnect_client($id) {
syslog(LOG_INFO,"Authenticated user $cpdb[$i][4] disconnected");
}
+ mwexec("/sbin/pfctl -t captiveportal -T delete {$ip}");
+
unset($cpdb[$i]);
break;
}
}
+
/* write database */
captiveportal_write_db($cpdb);
OpenPOWER on IntegriCloud