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
e74d4cb9
Commit
e74d4cb9
authored
Dec 29, 2014
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
voucher code typo
parent
7d85b81f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
captiveportal.inc
src/etc/inc/captiveportal.inc
+2
-2
CPClient.php
...nsense/mvc/app/models/OPNsense/CaptivePortal/CPClient.php
+1
-1
No files found.
src/etc/inc/captiveportal.inc
View file @
e74d4cb9
...
...
@@ -140,7 +140,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
if
(
$attributes
[
'voucher'
])
{
$db
=
new
OPNsense\Captive
p
ortal\DB
(
$cpzone
);
$db
=
new
OPNsense\Captive
P
ortal\DB
(
$cpzone
);
$clients
=
$db
->
listClients
(
array
(
"username"
=>
$username
),
null
,
null
);
foreach
(
$clients
as
$client
)
{
// user is already connected, disconnect old session
...
...
@@ -876,7 +876,7 @@ function captiveportal_radius_stop_all() {
$radiusservers
=
captiveportal_get_radius_servers
();
if
(
!
empty
(
$radiusservers
))
{
$cpdb
=
new
OPNsense\Captive
p
ortal\DB
(
$cpzone
);
$cpdb
=
new
OPNsense\Captive
P
ortal\DB
(
$cpzone
);
$clients
=
$cpdb
->
listClients
(
array
());
...
...
src/opnsense/mvc/app/models/OPNsense/CaptivePortal/CPClient.php
View file @
e74d4cb9
...
...
@@ -544,7 +544,7 @@ class CPClient {
$session_data
[
"pipeno_in"
]
=
$pipeno_in
;
$session_data
[
"pipeno_out"
]
=
$pipeno_out
;
$session_data
[
"username"
]
=
\SQLite3
::
escapeString
(
$username
);
$session_data
[
"bpassword"
]
=
base64_encode
(
$password
);
$session_data
[
"bpassword"
]
=
base64_encode
(
$password
);
$session_data
[
"session_timeout"
]
=
$session_timeout
;
$session_data
[
"idle_timeout"
]
=
$idle_timeout
;
$session_data
[
"session_terminate_time"
]
=
$session_terminate_time
;
...
...
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