From 20e00cdf17f45f811135fe5fb61c133ce9021144 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 25 Jan 2023 19:26:21 +0100 Subject: feat(app-framework): Add UseSession attribute to replace annotation Signed-off-by: Christoph Wurst --- core/Controller/WebAuthnController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/Controller/WebAuthnController.php') diff --git a/core/Controller/WebAuthnController.php b/core/Controller/WebAuthnController.php index 81e6daf51c7..bd0726d2aa2 100644 --- a/core/Controller/WebAuthnController.php +++ b/core/Controller/WebAuthnController.php @@ -33,6 +33,7 @@ use OC\Authentication\WebAuthn\Manager; use OC\URLGenerator; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; +use OCP\AppFramework\Http\Attribute\UseSession; use OCP\AppFramework\Http\JSONResponse; use OCP\IRequest; use OCP\ISession; @@ -63,8 +64,8 @@ class WebAuthnController extends Controller { /** * @NoAdminRequired * @PublicPage - * @UseSession */ + #[UseSession] public function startAuthentication(string $loginName): JSONResponse { $this->logger->debug('Starting WebAuthn login'); @@ -87,8 +88,8 @@ class WebAuthnController extends Controller { /** * @NoAdminRequired * @PublicPage - * @UseSession */ + #[UseSession] public function finishAuthentication(string $data): JSONResponse { $this->logger->debug('Validating WebAuthn login'); -- cgit v1.2.3