upd: registration
Add CSRF protection to registration form
This commit is contained in:
parent
573b8b1d26
commit
c933e6b91b
@ -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',
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user