upd: registration

Add CSRF protection to registration form
This commit is contained in:
Ryan Prather 2025-06-03 13:00:34 -04:00
parent 573b8b1d26
commit c933e6b91b

View File

@ -43,6 +43,9 @@ class RegistrationFormType extends AbstractType
{
$resolver->setDefaults([
'data_class' => User::class,
'csrf_protection' => true,
'csrf_field_name' => '_token',
'csrf_token_id' => 'registration',
]);
}
}