From 64c433d5b7a641ab1295c9d563a650a556477844 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 1 Dec 2015 19:03:22 +0000 Subject: [PATCH] coding style system_usermanager.php --- src/www/system_usermanager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/www/system_usermanager.php b/src/www/system_usermanager.php index 63f2b3190..6a6dc7f86 100644 --- a/src/www/system_usermanager.php +++ b/src/www/system_usermanager.php @@ -211,7 +211,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { // // the client side is (jquery) generates the actual download file. $username = $a_user[$id]['name']; - $authFactory = new \OPNsense\Auth\AuthenticationFactory; + $authFactory = new \OPNsense\Auth\AuthenticationFactory(); $authenticator = $authFactory->get("Local API"); $keyData = $authenticator->createKey($username); if ($keyData != null) { @@ -221,7 +221,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } elseif ($act =='delApiKey' && isset($id)) { $username = $a_user[$id]['name']; if (!empty($pconfig['api_delete'])) { - $authFactory = new \OPNsense\Auth\AuthenticationFactory; + $authFactory = new \OPNsense\Auth\AuthenticationFactory(); $authenticator = $authFactory->get("Local API"); $authenticator->dropKey($username, $pconfig['api_delete']); $savemsg = gettext("API key")." {$pconfig['api_delete']} ".