Skip to content

Commit

Permalink
fix: Load incomplete page as internal and external page
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Apr 11, 2024
1 parent b4e525e commit ea1cce7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,16 @@ public function indexF(): TemplateResponse {
#[NoCSRFRequired]
public function incomplete(): TemplateResponse {
Util::addScript(Application::APP_ID, 'libresign-main');
$response = new TemplateResponse(Application::APP_ID, 'main', [], TemplateResponse::RENDER_AS_BASE);
$response = new TemplateResponse(Application::APP_ID, 'main');
return $response;
}

#[PublicPage]
#[NoCSRFRequired]
public function incompleteP(): TemplateResponse {
return $this->incomplete();
Util::addScript(Application::APP_ID, 'libresign-main');
$response = new TemplateResponse(Application::APP_ID, 'main', [], TemplateResponse::RENDER_AS_BASE);
return $response;
}

#[NoAdminRequired]
Expand Down

0 comments on commit ea1cce7

Please sign in to comment.