checkState: fix perl error when testing a user account (#2413)

This commit is contained in:
Maxime Besson 2020-12-09 18:01:02 +01:00
parent d7d1473ad5
commit 442203685f

View File

@ -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 }
]