diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 7fd6c7b392..5b0255a0a5 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -216,6 +216,26 @@ public function signFPath(string $uuid): TemplateResponse { return $this->index(); } + /** + * Sign page to authenticated signer + * + * The path is used only by frontend + * + * @param string $uuid Sign request uuid + * @return TemplateResponse + * + * 200: OK + */ + #[NoAdminRequired] + #[NoCSRFRequired] + #[RequireSetupOk] + #[PublicPage] + #[RequireSignRequestUuid] + #[FrontpageRoute(verb: 'GET', url: '/p/sign/{uuid}/pdf')] + public function signPdf(string $uuid): TemplateResponse { + return $this->sign($uuid); + } + /** * Sign page to authenticated signer * diff --git a/src/Components/RightSidebar/RequestSignatureTab.vue b/src/Components/RightSidebar/RequestSignatureTab.vue index 6dc882140a..4f7641c6e4 100644 --- a/src/Components/RightSidebar/RequestSignatureTab.vue +++ b/src/Components/RightSidebar/RequestSignatureTab.vue @@ -56,7 +56,9 @@ - +