From 442203685fd56677a08f8f352dd888277e8376d4 Mon Sep 17 00:00:00 2001 From: Maxime Besson Date: Wed, 9 Dec 2020 18:01:02 +0100 Subject: [PATCH] checkState: fix perl error when testing a user account (#2413) --- .../lib/Lemonldap/NG/Portal/Plugins/CheckState.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/CheckState.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/CheckState.pm index 3c26cdc78..d052ac831 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/CheckState.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Plugins/CheckState.pm @@ -23,7 +23,7 @@ sub init { } $self->addUnauthRoute( checkstate => 'check', ['GET'] ) ->addAuthRoute( checkstate => 'check', ['GET'] ); - + return 1; } @@ -49,7 +49,7 @@ sub check { # - "buildCookie" useless here $req->steps( [ 'getUser', 'authenticate', - @{ $self->p->betweenAuthAndData }, $self->sessionData, + @{ $self->p->betweenAuthAndData }, $self->p->sessionData, @{ $self->p->afterData }, 'storeHistory', @{ $self->p->endAuth } ]