Update pod
This commit is contained in:
parent
ae852f8161
commit
d1a1dad442
|
@ -193,7 +193,7 @@ inherits of L<Lemonldap::NG::Handler::PSGI::Router>
|
||||||
|
|
||||||
=head1 ORGANIZATION
|
=head1 ORGANIZATION
|
||||||
|
|
||||||
Lemonldap::NG Manager contains 5 parts:
|
Lemonldap::NG Manager contains 6 parts:
|
||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
|
@ -203,6 +203,8 @@ Lemonldap::NG Manager contains 5 parts:
|
||||||
|
|
||||||
=item Notification explorer
|
=item Notification explorer
|
||||||
|
|
||||||
|
=item Second Factors manager
|
||||||
|
|
||||||
=item Configuration builder (see L<Lemonldap::NG::Manager::Build>
|
=item Configuration builder (see L<Lemonldap::NG::Manager::Build>
|
||||||
|
|
||||||
=item Command line (see L<Lemonldap::NG::Manager::Cli>
|
=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
|
protection = manager
|
||||||
|
|
||||||
;enabledModules: Modules to display. Default to `conf, sessions, notifications`
|
;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
|
;logLevel: choose one of error, warn, notice, info, debug
|
||||||
; See Lemonldap::NG::Common::PSGI doc for more
|
; See Lemonldap::NG::Common::PSGI doc for more
|
||||||
|
|
|
@ -362,7 +362,7 @@ sub tests {
|
||||||
return 1 unless ( $conf->{utotp2fActivation} );
|
return 1 unless ( $conf->{utotp2fActivation} );
|
||||||
my $w = "";
|
my $w = "";
|
||||||
foreach ( 'totp', 'u' ) {
|
foreach ( 'totp', 'u' ) {
|
||||||
$w .= uc($_) . "2F is activated twice !!! \n"
|
$w .= uc($_) . "2F is activated twice \n"
|
||||||
if ( $conf->{ $_ . '2fActivation' } eq '1' );
|
if ( $conf->{ $_ . '2fActivation' } eq '1' );
|
||||||
}
|
}
|
||||||
return ( 1, ( $w ? $w : () ) );
|
return ( 1, ( $w ? $w : () ) );
|
||||||
|
|
|
@ -131,6 +131,15 @@ L<Lemonldap::NG::Portal> second factor plugins.
|
||||||
sub init {
|
sub init {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
# Insert here initialization process
|
# 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:
|
# Required call:
|
||||||
return $self->SUPER::init();
|
return $self->SUPER::init();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user