Run forAuthUser when serving /ping
This commit is contained in:
parent
87a91f222f
commit
4e29b8e61a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue