Update version & typos (#2714)

This commit is contained in:
Christophe Maudoux 2022-03-06 11:45:36 +01:00
parent 1aca07cc45
commit c389c6d509
2 changed files with 10 additions and 10 deletions

View File

@ -23,7 +23,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
PE_NO_SECOND_FACTORS
);
our $VERSION = '2.0.14';
our $VERSION = '2.0.15';
extends 'Lemonldap::NG::Portal::Main::Plugin';
with 'Lemonldap::NG::Portal::Lib::OverConf';
@ -210,8 +210,8 @@ sub run {
my $forceUpgrade = $req->param('forceUpgrade');
my $stayconnected = $req->param('stayconnected');
my $spoofId = $req->param('spoofId') || '';
$self->logger->debug("2F checkLogins set") if $checkLogins;
$self->logger->debug("2F forceUgrade set") if $forceUpgrade;
$self->logger->debug("2F checkLogins set") if $checkLogins;
$self->logger->debug("2F forceUpgrade set") if $forceUpgrade;
# Skip 2F unless a module has been registered
unless ( @{ $self->sfModules } ) {
@ -228,7 +228,7 @@ sub run {
# Skip 2F if authnLevel is already high enough
if (
$self->conf->{sfOnlyUpgrade} && !$forceUpgrade
$self->conf->{sfOnlyUpgrade} and !$forceUpgrade
and ( ( $req->pdata->{targetAuthnLevel} || 0 ) <=
( $req->sessionInfo->{authenticationLevel} || 0 ) )
)
@ -242,7 +242,7 @@ sub run {
# Remove expired 2F devices
my $session = $req->sessionInfo;
if ( $session->{_2fDevices} ) {
$self->logger->debug("Loading 2F devices ...");
$self->logger->debug("Loading 2F devices...");
# Read existing 2FDevices
my $_2fDevices =

View File

@ -8,7 +8,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
PE_TOKENEXPIRED
);
our $VERSION = '2.0.12';
our $VERSION = '2.0.15';
extends 'Lemonldap::NG::Portal::Main::Plugin';
@ -72,9 +72,9 @@ sub ask {
return $self->confirm($req)
if ( $req->param('upgrading') or $req->param('kerberos') );
my $url = $req->param('url') || '';
my $forceUpgrade = $req->param('forceUpgrade') || '';
my $action = ( $message =~ /^askTo(\w+)$/ )[0];
my $url = $req->param('url') || '';
my $forceUpgrade = $req->param('forceUpgrade') || '';
my $action = ( $message =~ /^askTo(\w+)$/ )[0];
$self->logger->debug(" -> $action required");
$self->logger->debug(" -> Skip confirmation is enabled")
if $self->conf->{"skip${action}Confirmation"};
@ -156,7 +156,7 @@ sub confirm {
else {
# Go to portal
$self->logger->debug("Upgrade session failed -> Go to portal");
$self->logger->debug("Upgrade session failed -> Go to Portal");
$req->mustRedirect(1);
return $self->p->do( $req, [ sub { PE_OK } ] );
}