Commit ef486094 authored by Ad Schellevis's avatar Ad Schellevis

(captiveportal, new) coding style

parent 192b6eb6
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
require_once('script/load_phalcon.php'); require_once('script/load_phalcon.php');
use OPNsense\Auth\AuthenticationFactory; use OPNsense\Auth\AuthenticationFactory();
// open database // open database
$database_filename = '/var/captiveportal/captiveportal.sqlite'; $database_filename = '/var/captiveportal/captiveportal.sqlite';
...@@ -54,7 +54,7 @@ $result = $db->query(' ...@@ -54,7 +54,7 @@ $result = $db->query('
// process all sessions // process all sessions
while($row = $result->fetchArray(SQLITE3_ASSOC) ){ while($row = $result->fetchArray(SQLITE3_ASSOC) ){
$authFactory = new OPNsense\Auth\AuthenticationFactory; $authFactory = new OPNsense\Auth\AuthenticationFactory();
$authenticator = $authFactory->get($row['authenticated_via']); $authenticator = $authFactory->get($row['authenticated_via']);
if ($authenticator != null) { if ($authenticator != null) {
if ($row['state'] == null) { if ($row['state'] == null) {
......
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