Update routes to use CSRF protection
This commit is contained in:
parent
98b3355158
commit
2def94c958
5 changed files with 18 additions and 40 deletions
|
@ -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 a new issue