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
64c433d5
Commit
64c433d5
authored
Dec 01, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding style system_usermanager.php
parent
ef486094
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
system_usermanager.php
src/www/system_usermanager.php
+2
-2
No files found.
src/www/system_usermanager.php
View file @
64c433d5
...
@@ -211,7 +211,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -211,7 +211,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
//
//
// the client side is (jquery) generates the actual download file.
// the client side is (jquery) generates the actual download file.
$username
=
$a_user
[
$id
][
'name'
];
$username
=
$a_user
[
$id
][
'name'
];
$authFactory
=
new
\OPNsense\Auth\AuthenticationFactory
;
$authFactory
=
new
\OPNsense\Auth\AuthenticationFactory
()
;
$authenticator
=
$authFactory
->
get
(
"Local API"
);
$authenticator
=
$authFactory
->
get
(
"Local API"
);
$keyData
=
$authenticator
->
createKey
(
$username
);
$keyData
=
$authenticator
->
createKey
(
$username
);
if
(
$keyData
!=
null
)
{
if
(
$keyData
!=
null
)
{
...
@@ -221,7 +221,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -221,7 +221,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
elseif
(
$act
==
'delApiKey'
&&
isset
(
$id
))
{
}
elseif
(
$act
==
'delApiKey'
&&
isset
(
$id
))
{
$username
=
$a_user
[
$id
][
'name'
];
$username
=
$a_user
[
$id
][
'name'
];
if
(
!
empty
(
$pconfig
[
'api_delete'
]))
{
if
(
!
empty
(
$pconfig
[
'api_delete'
]))
{
$authFactory
=
new
\OPNsense\Auth\AuthenticationFactory
;
$authFactory
=
new
\OPNsense\Auth\AuthenticationFactory
()
;
$authenticator
=
$authFactory
->
get
(
"Local API"
);
$authenticator
=
$authFactory
->
get
(
"Local API"
);
$authenticator
->
dropKey
(
$username
,
$pconfig
[
'api_delete'
]);
$authenticator
->
dropKey
(
$username
,
$pconfig
[
'api_delete'
]);
$savemsg
=
gettext
(
"API key"
)
.
"
{
$pconfig
[
'api_delete'
]
}
"
.
$savemsg
=
gettext
(
"API key"
)
.
"
{
$pconfig
[
'api_delete'
]
}
"
.
...
...
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