mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Update routes to use CSRF protection
This commit is contained in:
@@ -31,7 +31,8 @@ class BaseRoutes {
|
||||
$router->group([
|
||||
'profix' => 'account',
|
||||
'middleware' => [
|
||||
'auth'
|
||||
'auth',
|
||||
'csrf'
|
||||
]
|
||||
], function () use ($router) {
|
||||
$router->get('account', [
|
||||
@@ -50,7 +51,8 @@ class BaseRoutes {
|
||||
$router->group([
|
||||
'prefix' => 'account/totp',
|
||||
'middleware' => [
|
||||
'auth'
|
||||
'auth',
|
||||
'csrf'
|
||||
]
|
||||
], function () use ($router) {
|
||||
$router->get('/', [
|
||||
|
||||
Reference in New Issue
Block a user