# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

sylius_shop_user_request_verification_token:
    path: /verify
    methods: [POST]
    defaults:
        _controller: sylius.controller.shop_user:requestVerificationTokenAction

sylius_shop_user_verification:
    path: /verify/{token}
    methods: [GET]
    defaults:
        _controller: sylius.controller.shop_user:verifyAction
        _sylius:
            redirect: sylius_shop_homepage

# This file is part of the Sylius package.
# (c) Paweł Jędrzejewski

sylius_shop_user_request_verification_token:
    path: /verify
    methods: [POST]
    defaults:
        _controller: sylius.controller.shop_user:requestVerificationTokenAction

sylius_shop_user_verification:
    path: /verify/{token}
    methods: [GET]
    defaults:
        _controller: sylius.controller.shop_user:verifyAction
        _sylius:
            redirect: sylius_shop_account_dashboard

Update redirect after email verification
Update redirect after email verification

Usually, after successful registration, users will immediately check the post and follow the link in the email and thinking that they have already entered, but it is not. This changes will redirect user to login page or to account dashboard.