mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
(auth/radius) missing define, style cleanups
This commit is contained in:
parent
355f08fb14
commit
a8fa4e5ac6
@ -29,8 +29,6 @@
|
||||
|
||||
namespace OPNsense\Auth;
|
||||
|
||||
use OPNsense\Core\Config;
|
||||
|
||||
/**
|
||||
* Class Radius connector
|
||||
* @package OPNsense\Auth
|
||||
@ -117,8 +115,8 @@ class Radius implements IAuthConnector
|
||||
|
||||
/**
|
||||
* send start accounting message to radius
|
||||
* @param $username username
|
||||
* @param $sessionid session id to pass through
|
||||
* @param string $username username
|
||||
* @param string $sessionid session id to pass through
|
||||
*/
|
||||
public function startAccounting($username, $sessionid)
|
||||
{
|
||||
@ -249,6 +247,9 @@ class Radius implements IAuthConnector
|
||||
public function updateAccounting($username, $sessionid, $session_time)
|
||||
{
|
||||
$radius = radius_auth_open();
|
||||
if (!defined('RADIUS_UPDATE')) {
|
||||
define('RADIUS_UPDATE', 3);
|
||||
}
|
||||
|
||||
$error = null;
|
||||
if (!radius_add_server(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user