Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
26942c64
Commit
26942c64
authored
Aug 31, 2018
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve conf tests
parent
59550d3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
+5
-4
No files found.
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
View file @
26942c64
...
...
@@ -389,11 +389,12 @@ sub tests {
# Warn if 2F dependencies seem missing
sfaDependencies
=>
sub
{
my
$
enabled2fModule
=
0
;
my
$
ok
=
0
;
foreach
(
qw(u totp utotp yubikey)
)
{
$enabled2fModule
||=
$conf
->
{
$_
.
'
2fActivation
'
};
$ok
||=
$conf
->
{
$_
.
'
2fActivation
'
};
last
if
(
$ok
);
}
return
1
unless
(
$
enabled2fModule
);
return
1
unless
(
$
ok
);
# Use TOTP
if
(
$conf
->
{
totp2fActivation
}
...
...
@@ -500,10 +501,10 @@ sub tests {
my
$msg
=
'';
my
$ok
=
0
;
foreach
(
qw(u totp yubikey)
)
{
$ok
||=
$conf
->
{
$_
.
'
2fActivation
'
}
&&
$conf
->
{
$_
.
'
2fSelfRegistration
'
};
last
if
(
$ok
);
}
$ok
||=
$conf
->
{'
utotp2fActivation
'}
...
...
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