Run forAuthUser when serving /ping

This commit is contained in:
Maxime Besson 2022-02-25 17:07:05 +01:00
parent 87a91f222f
commit 4e29b8e61a
1 changed files with 13 additions and 1 deletions

View File

@ -121,7 +121,19 @@ sub handler {
sub authenticated {
my ( $self, $req ) = @_;
return $self->sendJSONresponse( $req, { status => 1 } );
return $self->do(
$req,
[
'importHandlerData',
'controlUrl',
@{ $self->forAuthUser },
sub {
$req->response($self->sendJSONresponse( $req, { status => 1 } ));
return PE_SENDRESPONSE;
}
]
);
}
sub pleaseAuth {