Update pod

This commit is contained in:
Christophe Maudoux 2018-04-29 22:02:26 +02:00
parent ae852f8161
commit d1a1dad442
3 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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 : () ) );

View File

@ -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();
}