Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
07fe290b
Commit
07fe290b
authored
Oct 24, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Captiveportal, new) work in progress session/client restrictions
parent
7febe0a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AccessController.php
...ntrollers/OPNsense/CaptivePortal/Api/AccessController.php
+2
-2
No files found.
src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/Api/AccessController.php
View file @
07fe290b
...
@@ -174,8 +174,9 @@ class AccessController extends ApiControllerBase
...
@@ -174,8 +174,9 @@ class AccessController extends ApiControllerBase
'json'
'json'
)
)
);
);
$CPsession
=
json_decode
(
$CPsession
,
true
);
// push session restrictions, if they apply
// push session restrictions, if they apply
if
(
array_key_exists
(
'sessionId'
,
$CPsession
)
&&
$authServer
!=
null
)
{
if
(
$CPsession
!=
null
&&
array_key_exists
(
'sessionId'
,
$CPsession
)
&&
$authServer
!=
null
)
{
$authProps
=
$authServer
->
getLastAuthProperties
();
$authProps
=
$authServer
->
getLastAuthProperties
();
// when adding more client/session restrictions, extend next code
// when adding more client/session restrictions, extend next code
// (currently only time is restricted)
// (currently only time is restricted)
...
@@ -189,7 +190,6 @@ class AccessController extends ApiControllerBase
...
@@ -189,7 +190,6 @@ class AccessController extends ApiControllerBase
);
);
}
}
}
}
$CPsession
=
json_decode
(
$CPsession
,
true
);
if
(
$CPsession
!=
null
)
{
if
(
$CPsession
!=
null
)
{
// only return session if configd return a valid json response, otherwise fallback to
// only return session if configd return a valid json response, otherwise fallback to
// returning "UNKNOWN"
// returning "UNKNOWN"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment