Skip to content

Commit

Permalink
Merge pull request #8 from SPLRGE/fix/csrf-auth-setup-error
Browse files Browse the repository at this point in the history
Fix: Csrf auth setup error
  • Loading branch information
vic256 authored Aug 21, 2024
2 parents a5da91b + 1dd508c commit 747773a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion config/shield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const shieldConfig = defineConfig({
*/
csrf: {
enabled: true,
exceptRoutes: ['auth.setup'],
exceptRoutes: ['/auth/setup'],
enableXsrfCookie: false,
methods: ['POST', 'PUT', 'PATCH', 'DELETE'],
},
Expand Down
1 change: 0 additions & 1 deletion resources/views/pages/auth/create-first-account.edge
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<div class="card-body">
<!--<h2 class="h2 text-center mb-4">Login to your account</h2>-->
<form action="{{ route('auth.setup') }}" method="post" data-form-type="register">
{{ csrfField() }}
<div class="mb-3">
<label for="email" class="form-label">Email address</label>
<input type="email" id="email" name="email" class="form-control" placeholder="[email protected]">
Expand Down

0 comments on commit 747773a

Please sign in to comment.