From c1ec521ffa3c6df4e6f25fa52e1a8bf70a9208c5 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 29 Jan 2019 21:16:17 +0300 Subject: [PATCH] Fixing route prefixes. --- config/packages/security.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 59fe6a9..bf03638 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -46,7 +46,7 @@ security: - { path: ^/api/v1/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/api/, roles: ROLE_USER } - { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - - { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY } - - { path: /register/, roles: IS_AUTHENTICATED_ANONYMOUSLY } - - { path: /magnet/, roles: IS_AUTHENTICATED_ANONYMOUSLY } + - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } + - { path: ^/register/, roles: IS_AUTHENTICATED_ANONYMOUSLY } + - { path: ^/magnet/, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/, roles: ROLE_USER }