mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
(captiveportal, new) coding style
This commit is contained in:
parent
192b6eb65d
commit
ef4860945b
@ -30,7 +30,7 @@
|
||||
|
||||
require_once('script/load_phalcon.php');
|
||||
|
||||
use OPNsense\Auth\AuthenticationFactory;
|
||||
use OPNsense\Auth\AuthenticationFactory();
|
||||
|
||||
// open database
|
||||
$database_filename = '/var/captiveportal/captiveportal.sqlite';
|
||||
@ -54,7 +54,7 @@ $result = $db->query('
|
||||
|
||||
// process all sessions
|
||||
while($row = $result->fetchArray(SQLITE3_ASSOC) ){
|
||||
$authFactory = new OPNsense\Auth\AuthenticationFactory;
|
||||
$authFactory = new OPNsense\Auth\AuthenticationFactory();
|
||||
$authenticator = $authFactory->get($row['authenticated_via']);
|
||||
if ($authenticator != null) {
|
||||
if ($row['state'] == null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user