Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
a69d19c2
Commit
a69d19c2
authored
Jan 23, 2019
by
Christophe Maudoux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning useless code
parent
65d3e921
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
43 deletions
+2
-43
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/2ndFA.pm
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/2ndFA.pm
+2
-39
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Register/U2F.pm
...ldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Register/U2F.pm
+0
-4
No files found.
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/2ndFA.pm
View file @
a69d19c2
...
...
@@ -16,7 +16,7 @@ use feature 'state';
extends
'
Lemonldap::NG::Common::Conf::AccessLib
',
'
Lemonldap::NG::Common::Session::REST
';
our
$VERSION
=
'
2.0.
0
';
our
$VERSION
=
'
2.0.
2
';
#############################
# I. INITIALIZATION METHODS #
...
...
@@ -42,26 +42,10 @@ sub addRoutes {
['
DELETE
']
);
## ADD 2FA DEVICE
#->addRoute(
#sfa => { ':sessionType' => { ':sessionId' => 'add2FA' } },
#['PUT']
#)
## VERIFY 2FA DEVICE
#->addRoute(
#sfa => { ':sessionType' => { ':sessionId' => 'verify2FA' } },
#['POST']
#);
$self
->
setTypes
(
$conf
);
#$self->{ipField} ||= 'ipAddr';
$self
->
{
multiValuesSeparator
}
||=
'
;
';
$self
->
{
hiddenAttributes
}
//
=
"
_password
";
$self
->
{
TOTPCheck
}
=
'
1
';
$self
->
{
U2FCheck
}
=
'
1
';
$self
->
{
UBKCheck
}
=
'
1
';
$self
->
{
TOTPCheck
}
=
$self
->
{
U2FCheck
}
=
$self
->
{
UBKCheck
}
=
'
1
';
}
###################
...
...
@@ -91,26 +75,6 @@ sub del2F {
}
}
#sub add2FA {
#my ( $self, $req, $session, $skey ) = @_;
#eval 'use Crypt::U2F::Server::Simple';
#if ($@) {
#$self->error("Can't load U2F library: $@");
#return 0;
#}
#return $self->addU2FKey( $req, $session, $skey );
#}
#sub verify2FA {
#my ( $self, $req, $session, $skey ) = @_;
#return $self->addU2FKey( $req, $session, $skey );
#}
########################
# III. DISPLAY METHODS #
########################
...
...
@@ -120,7 +84,6 @@ sub sfa {
# Case 1: only one session is required
if
(
$session
)
{
return
$self
->
session
(
$req
,
$session
,
$skey
);
}
...
...
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Register/U2F.pm
View file @
a69d19c2
...
...
@@ -298,9 +298,6 @@ sub run {
[
'
Content-Type
'
=>
'
application/json
',
'
Content-Length
'
=>
12
,
],
['
{"result":1}
']
];
my
$err
=
Crypt::U2F::Server::Simple::
lastError
();
$self
->
userLogger
->
warn
("
U2F Unregistration failed:
$err
");
return
$self
->
p
->
sendError
(
$req
,
$err
,
200
);
}
else
{
$self
->
logger
->
error
("
Unknown U2F action ->
$action
");
...
...
@@ -316,7 +313,6 @@ sub loadUser {
# Read existing 2FDevices
$self
->
logger
->
debug
("
Looking for 2F Devices ...
");
my
(
$kh
,
$uk
,
$_2fDevices
);
my
@u2fs
=
();
if
(
$req
->
userData
->
{
_2fDevices
}
)
{
...
...
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