(12-01-2024, 09:26 PM)ozornick Wrote: See in console or test controller command():
spark routes
spark filter:check /users
https://codeigniter.com/user_guide/incom...lter-check
spark routes
Code:
CodeIgniter v4.5.5 Command Line Tool - Server Time: 2024-12-02 11:47:12 UTC+00:00
+--------+------------------------------+-------------------------------------+--------------------------------------------------------------------+------------------------------------+-----------------------+
| Method | Route | Name | Handler | Before Filters | After Filters |
+--------+------------------------------+-------------------------------------+--------------------------------------------------------------------+------------------------------------+-----------------------+
| GET | / | main | \App\Controllers\Home::index | csrf | |
| GET | profile | » | \App\Controllers\Auth\Profile::index | csrf session session | session |
| GET | profile/(.*) | profile-tab | \App\Controllers\Auth\Profile::index/$1 | csrf session session | session |
| GET | admin | » | \App\Controllers\Admin::index | csrf session permission | permission |
| GET | admin/users | admin-users | \App\Controllers\Auth\Users::index | csrf session permission permission | permission permission |
| GET | register | » | \CodeIgniter\Shield\Controllers\RegisterController::registerView | csrf auth-rates | |
| GET | login | » | \CodeIgniter\Shield\Controllers\LoginController::loginView | csrf auth-rates | |
| GET | login/magic-link | magic-link | \CodeIgniter\Shield\Controllers\MagicLinkController::loginView | csrf auth-rates | |
| GET | login/verify-magic-link | verify-magic-link | \CodeIgniter\Shield\Controllers\MagicLinkController::verify | csrf auth-rates | |
| GET | logout | » | \CodeIgniter\Shield\Controllers\LoginController::logoutAction | csrf | |
| GET | auth/a/show | auth-action-show | \CodeIgniter\Shield\Controllers\ActionController::show | csrf auth-rates | |
| POST | profile/update | update-profile | \App\Controllers\Auth\Profile::update | csrf session session | session |
| POST | profile/change-password | update-profile-password | \App\Controllers\Auth\Profile::changePassword | csrf session session | session |
| POST | profile/toggle-2fa | update-profile-2fa | \App\Controllers\Auth\Profile::toggle2FA | csrf session session | session |
| POST | profile/purge-remember-token | update-profile-purge-remember-token | \App\Controllers\Auth\Profile::purgeRememberToken | csrf session session | session |
| POST | register | » | \CodeIgniter\Shield\Controllers\RegisterController::registerAction | csrf auth-rates | |
| POST | login | » | \CodeIgniter\Shield\Controllers\LoginController::loginAction | csrf auth-rates | |
| POST | login/magic-link | » | \CodeIgniter\Shield\Controllers\MagicLinkController::loginAction | csrf auth-rates | |
| POST | auth/a/handle | auth-action-handle | \CodeIgniter\Shield\Controllers\ActionController::handle | csrf auth-rates | |
| POST | auth/a/verify | auth-action-verify | \CodeIgniter\Shield\Controllers\ActionController::verify | csrf auth-rates | |
+--------+------------------------------+-------------------------------------+--------------------------------------------------------------------+------------------------------------+-----------------------+
and check
Code:
php spark filter:check GET /admin/users/
CodeIgniter v4.5.5 Command Line Tool - Server Time: 2024-12-02 11:48:42 UTC+00:00
+--------+---------------+---------------------------------------------------------+-----------------------------------------------------+
| Method | Route | Before Filters | After Filters |
+--------+---------------+---------------------------------------------------------+-----------------------------------------------------+
| GET | /admin/users/ | forcehttps pagecache csrf session permission permission | permission permission pagecache performance toolbar |
+--------+---------------+---------------------------------------------------------+-----------------------------------------------------+