afterDatas was not called in 2F (#1148)

environments/ppa-mbqj77/deployments/17
Xavier Guimard 7 years ago
parent 56dd0610fa
commit 79638ec81b
  1. 4
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm

@ -33,7 +33,7 @@ has noRoute => ( is => 'ro' );
sub init {
my ($self) = @_;
unless ( $self->noRoute ) {
$self->logger->debug('Adding '.$self->prefix . '2fcheck routes');
$self->logger->debug( 'Adding ' . $self->prefix . '2fcheck routes' );
$self->addUnauthRoute(
$self->prefix . '2fcheck' => '_verify',
['POST']
@ -92,7 +92,7 @@ sub _verify {
if ( my $l = $self->conf->{ $self->prefix . '2fAuthnLevel' } ) {
$self->p->updateSession( $req, { authenticationLevel => $l } );
}
return $self->p->do( $req, [ sub { PE_OK } ] );
return $self->p->do( $req, [ @{ $self->p->afterDatas }, sub { PE_OK } ] );
}
1;

Loading…
Cancel
Save