Welcome Guest, Not a member yet? Register   Sign In
How to protect a route if using shield ?
#4

(This post was last modified: 12-30-2022, 06:12 AM by datamweb.)

What is admin-auth?!

Shield currently has six filters, session, tokens, chained , auth-rates, permission and group.

You can use it as follows:

PHP Code:
$routes->get('/admin''Admin\Admin::index' ,['filter' => 'session']); 

I edited this post, added two new filters permission and group in the development branch. Also, spelling mistake sessions was corrected.
Reply


Messages In This Thread
RE: How to protect a route if using shield ? - by datamweb - 12-11-2022, 02:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB