Skip to content

Commit

Permalink
added csrf to registration form
Browse files Browse the repository at this point in the history
  • Loading branch information
msalakhov-smartorange committed Oct 21, 2021
1 parent 64ef0b0 commit 5e2e44a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/Form/RegistrationFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'data_class' => User::class,
'csrf_protection' => true,
'csrf_field_name' => '_token',
'csrf_token_id' => 'sign_up',
]);
}
}

0 comments on commit 5e2e44a

Please sign in to comment.