From 79638ec81bbe2805220d865d5cd0116d320622b5 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Tue, 12 Jun 2018 08:38:17 +0200 Subject: [PATCH] afterDatas was not called in 2F (#1148) --- .../lib/Lemonldap/NG/Portal/Main/SecondFactor.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm index c5ced8fd7..97a8a90a9 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm +++ b/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;