sylius_admin_login:
    path: /login
    methods: [GET]
    defaults:
        _controller: sylius.controller.security::loginAction
        _sylius:
            template: "@SyliusAdmin/security/login.html.twig"
            permission: true
            logged_in_route: sylius_admin_dashboard

sylius_admin_login_check:
    path: /login-check
    methods: [POST]
    defaults:
        _controller: sylius.controller.security::checkAction

sylius_admin_logout:
    path: /logout
    methods: [GET]

sylius_admin_render_reset_password_page:
    path: /forgotten-password
    methods: [GET]
    controller: sylius_admin.controller.account.render_request_password_reset_page

sylius_admin_request_password_reset:
    path: /forgotten-password
    methods: [POST]
    controller: sylius_admin.controller.account.request_password_reset

sylius_admin_render_password_reset:
    path: /forgotten-password/{token}
    methods: [GET]
    defaults:
        _controller: sylius_admin.controller.account.render_reset_password_page

sylius_admin_password_reset:
    path: /forgotten-password/{token}
    methods: [POST]
    defaults:
        _controller: sylius_admin.controller.account.reset_password
