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
192b6eb6
Commit
192b6eb6
authored
Dec 01, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(captiveportal, new) failsafe, don't try to authenticate if handler not found
parent
196da2bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
AccessController.php
...ntrollers/OPNsense/CaptivePortal/Api/AccessController.php
+10
-8
No files found.
src/opnsense/mvc/app/controllers/OPNsense/CaptivePortal/Api/AccessController.php
View file @
192b6eb6
...
...
@@ -141,15 +141,17 @@ class AccessController extends ApiControllerBase
$authFactory
=
new
AuthenticationFactory
();
foreach
(
explode
(
','
,
(
string
)
$cpZone
->
authservers
)
as
$authServerName
)
{
$authServer
=
$authFactory
->
get
(
trim
(
$authServerName
));
// try this auth method
$isAuthenticated
=
$authServer
->
authenticate
(
$userName
,
$this
->
request
->
getPost
(
"password"
,
"string"
)
);
if
(
$authServer
!=
null
)
{
// try this auth method
$isAuthenticated
=
$authServer
->
authenticate
(
$userName
,
$this
->
request
->
getPost
(
"password"
,
"string"
)
);
if
(
$isAuthenticated
)
{
// stop trying, when authenticated
break
;
if
(
$isAuthenticated
)
{
// stop trying, when authenticated
break
;
}
}
}
}
else
{
...
...
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