-
I need to protect all pages to only be accessed after successful login, except the page (login, register) service('auth')->routes($routes, ['except' => ['login', 'register']]); But it didn't work, do I need to change it somewhere else? |
Beta Was this translation helpful? Give feedback.
Answered by
kenjis
Jun 30, 2022
Replies: 1 comment 4 replies
-
Configure globals filter. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
kenjis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configure globals filter.
See https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html#globals