From 3ebf59d8e948ffaeadb142acd6aaa919977d3a7c Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Thu, 16 Jan 2025 10:15:50 -0300 Subject: [PATCH] fix: validation url The method was renamed and the route also need to be renamed. Signed-off-by: Vitor Mattos --- lib/Controller/PageController.php | 2 +- lib/Service/IdentifyMethod/AbstractIdentifyMethod.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index c272adcba6..62d6aa918e 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -509,7 +509,7 @@ public function validation(): TemplateResponse { #[FrontpageRoute(verb: 'GET', url: '/validation/{uuid}')] public function validationFileWithShortUrl(): RedirectResponse { $this->throwIfValidationPageNotAccessible(); - return new RedirectResponse($this->url->linkToRoute('libresign.page.validationFile', ['uuid' => $this->request->getParam('uuid')])); + return new RedirectResponse($this->url->linkToRoute('libresign.page.validationFilePublic', ['uuid' => $this->request->getParam('uuid')])); } /** diff --git a/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php b/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php index 139d9685c5..e0da2b49e1 100644 --- a/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php +++ b/lib/Service/IdentifyMethod/AbstractIdentifyMethod.php @@ -265,7 +265,7 @@ protected function throwIfAlreadySigned(): void { 'action' => JSActions::ACTION_REDIRECT, 'errors' => [$this->identifyService->getL10n()->t('File already signed.')], 'redirect' => $this->identifyService->getUrlGenerator()->linkToRoute( - 'libresign.page.validationFile', + 'libresign.page.validationFilePublic', ['uuid' => $signRequest->getUuid()] ), ]));