Skip to content

How protect all pages with login shield #262

@caosdp-rs

Description

@caosdp-rs

I need to protect all pages to only be accessed after successful login, except the page (login, register)
I tried to add in Routes.php
service('auth')->routes($routes, ['except' => ['login', 'register']]);

But it didn't work, do I need to change it somewhere else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions