environments/ppa-mbqj77/deployments/1
Christophe Maudoux 7 years ago
parent ae852f8161
commit d1a1dad442
  1. 6
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager.pm
  2. 2
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
  3. 9
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm

@ -193,7 +193,7 @@ inherits of L<Lemonldap::NG::Handler::PSGI::Router>
=head1 ORGANIZATION
Lemonldap::NG Manager contains 5 parts:
Lemonldap::NG Manager contains 6 parts:
=over
@ -203,6 +203,8 @@ Lemonldap::NG Manager contains 5 parts:
=item Notification explorer
=item Second Factors manager
=item Configuration builder (see L<Lemonldap::NG::Manager::Build>
=item Command line (see L<Lemonldap::NG::Manager::Cli>
@ -253,7 +255,7 @@ you can also fix them in $opts hash ref passed as argument to run() or new()).
protection = manager
;enabledModules: Modules to display. Default to `conf, sessions, notifications`
enabledModules = conf, sessions, notifications
enabledModules = conf, sessions, notifications, 2ndFA
;logLevel: choose one of error, warn, notice, info, debug
; See Lemonldap::NG::Common::PSGI doc for more

@ -362,7 +362,7 @@ sub tests {
return 1 unless ( $conf->{utotp2fActivation} );
my $w = "";
foreach ( 'totp', 'u' ) {
$w .= uc($_) . "2F is activated twice !!! \n"
$w .= uc($_) . "2F is activated twice \n"
if ( $conf->{ $_ . '2fActivation' } eq '1' );
}
return ( 1, ( $w ? $w : () ) );

@ -131,6 +131,15 @@ L<Lemonldap::NG::Portal> second factor plugins.
sub init {
my ($self) = @_;
# Insert here initialization process
#
# If self registration is enabled and "activation" is set to "enabled",
# replace the rule to detect if user has registered a device key.
# The rule must be like this :
# By example :
$self->conf->{u2fActivation} = '$_2fDevices =~ /"type":\s*"U2F"/s'
# Optionnaly, the rule can be : '$_2fDevices and $_2fDevices =~ /"type":\s*"U2F"/s'
# to avoid warning due to undef variable
#
# Required call:
return $self->SUPER::init();
}

Loading…
Cancel
Save