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
ebc96f66
Commit
ebc96f66
authored
Sep 29, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(captiveportal, new) work in progress
parent
a3f0e27d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AccessController.php
...ntrollers/OPNsense/CaptivePortal/Api/AccessController.php
+3
-3
No files found.
src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/Api/AccessController.php
View file @
ebc96f66
...
...
@@ -77,7 +77,7 @@ class AccessController extends ApiControllerBase
// disable standard authentication in CaptivePortal Access API calls.
// set CORS headers
$this
->
response
->
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
);
$this
->
response
->
setHeader
(
"Access-Control-Allow-Methods"
,
"POST"
);
$this
->
response
->
setHeader
(
"Access-Control-Allow-Methods"
,
"
OPTIONS, GET,
POST"
);
}
/**
...
...
@@ -90,7 +90,7 @@ class AccessController extends ApiControllerBase
if
(
$this
->
request
->
isOptions
())
{
// return empty result on CORS preflight
return
array
();
}
elseif
(
$this
->
request
->
isPost
()
&&
$this
->
hasPost
(
'user'
))
{
}
elseif
(
$this
->
request
->
isPost
()
&&
$this
->
request
->
hasPost
(
'user'
))
{
// close session for long running action
$this
->
sessionClose
();
...
...
@@ -117,7 +117,7 @@ class AccessController extends ApiControllerBase
break
;
}
}
$isAuthenticated
=
true
;
if
(
$isAuthenticated
)
{
// when authenticated, we have $authServer available to request additional data if needed
$clientSession
=
$this
->
clientSession
((
string
)
$cpZone
->
zoneid
);
...
...
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