From eb291af26d44b41246d26767675667c482e5a53d Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 31 Dec 2025 09:57:40 -0500 Subject: [PATCH 1/2] fix: Add NoTwoFactorRequired attribute to poll method Signed-off-by: Josh --- lib/Controller/APIController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Controller/APIController.php b/lib/Controller/APIController.php index eeece852..68412c5a 100644 --- a/lib/Controller/APIController.php +++ b/lib/Controller/APIController.php @@ -70,6 +70,7 @@ public function disapprove(int $attemptId): DataResponse { } #[PublicPage] + #[NoTwoFactorRequired] public function poll(string $token): DataResponse { try { $token = $this->tokenManager->getByToken($token); From 2bbf91b05b958aa868d3ab9e5672f66827cc78f2 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 31 Dec 2025 10:15:42 -0500 Subject: [PATCH 2/2] chore: NoTwoFactorRequired annotation not reflection Signed-off-by: Josh --- lib/Controller/APIController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Controller/APIController.php b/lib/Controller/APIController.php index 68412c5a..eb578476 100644 --- a/lib/Controller/APIController.php +++ b/lib/Controller/APIController.php @@ -69,8 +69,10 @@ public function disapprove(int $attemptId): DataResponse { return new DataResponse([], Http::STATUS_OK); } + /** + * @NoTwoFactorRequired + */ #[PublicPage] - #[NoTwoFactorRequired] public function poll(string $token): DataResponse { try { $token = $this->tokenManager->getByToken($token);