Commit e74d4cb9 authored by Ad Schellevis's avatar Ad Schellevis

voucher code typo

parent 7d85b81f
...@@ -140,7 +140,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut ...@@ -140,7 +140,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
if ($attributes['voucher']) { if ($attributes['voucher']) {
$db = new OPNsense\Captiveportal\DB($cpzone); $db = new OPNsense\CaptivePortal\DB($cpzone);
$clients = $db->listClients(array("username"=>$username), null, null); $clients = $db->listClients(array("username"=>$username), null, null);
foreach ($clients as $client) { foreach ($clients as $client) {
// user is already connected, disconnect old session // user is already connected, disconnect old session
...@@ -876,7 +876,7 @@ function captiveportal_radius_stop_all() { ...@@ -876,7 +876,7 @@ function captiveportal_radius_stop_all() {
$radiusservers = captiveportal_get_radius_servers(); $radiusservers = captiveportal_get_radius_servers();
if (!empty($radiusservers)) { if (!empty($radiusservers)) {
$cpdb = new OPNsense\Captiveportal\DB($cpzone); $cpdb = new OPNsense\CaptivePortal\DB($cpzone);
$clients = $cpdb->listClients(array()); $clients = $cpdb->listClients(array());
......
...@@ -544,7 +544,7 @@ class CPClient { ...@@ -544,7 +544,7 @@ class CPClient {
$session_data["pipeno_in"] = $pipeno_in; $session_data["pipeno_in"] = $pipeno_in;
$session_data["pipeno_out"] = $pipeno_out; $session_data["pipeno_out"] = $pipeno_out;
$session_data["username"]=\SQLite3::escapeString($username); $session_data["username"]=\SQLite3::escapeString($username);
$session_data["bpassword"] =base64_encode($password); $session_data["bpassword"] = base64_encode($password);
$session_data["session_timeout"] = $session_timeout; $session_data["session_timeout"] = $session_timeout;
$session_data["idle_timeout"] = $idle_timeout; $session_data["idle_timeout"] = $idle_timeout;
$session_data["session_terminate_time"] = $session_terminate_time; $session_data["session_terminate_time"] = $session_terminate_time;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment