Remove profile-auth prefix from 2fa routes

This commit is contained in:
Clemente Raposo 2024-11-13 12:01:54 +00:00 committed by Jack Anderson
parent cef2839320
commit f0e42a0a1e
4 changed files with 10 additions and 10 deletions

View file

@ -91,10 +91,10 @@ return static function (ContainerConfigurator $containerConfig) {
['path' => '^/logout$', 'roles' => 'PUBLIC_ACCESS'],
['path' => '^/login$', 'roles' => 'PUBLIC_ACCESS'],
['path' => '^/session-status$', 'roles' => 'PUBLIC_ACCESS'],
['path' => '^/profile-auth/2fa/enable-finalize', 'roles' => 'ROLE_USER'],
['path' => '^/profile-auth/2fa/check', 'roles' => 'IS_AUTHENTICATED_2FA_IN_PROGRESS'],
['path' => '^/profile-auth/2fa/enable', 'roles' => 'ROLE_USER'],
['path' => '^/profile-auth/2fa/disable', 'roles' => 'ROLE_USER'],
['path' => '^/2fa/enable-finalize', 'roles' => 'ROLE_USER'],
['path' => '^/2fa/check', 'roles' => 'IS_AUTHENTICATED_2FA_IN_PROGRESS'],
['path' => '^/2fa/enable', 'roles' => 'ROLE_USER'],
['path' => '^/2fa/disable', 'roles' => 'ROLE_USER'],
['path' => '^/$', 'roles' => 'PUBLIC_ACCESS'],
['path' => '^/api', 'roles' => 'PUBLIC_ACCESS'],
['path' => '^/api/graphql', 'roles' => 'PUBLIC_ACCESS'],