diff --git a/app/.env.local b/app/.env.local index 5e67cab..489e778 100644 --- a/app/.env.local +++ b/app/.env.local @@ -31,4 +31,10 @@ DATABASE_URL="mysql://lux_admin:&pHDG3%LcV@database:3306/lux?serverVersion=8.0" # DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8" ###< doctrine/doctrine-bundle ### -MAIL_TO_ADDRESS=alb.botashev@gmail.com \ No newline at end of file +MAIL_TO_ADDRESS=alb.botashev@gmail.com + +###> symfony/lock ### +# Choose one of the stores below +# postgresql+advisory://db_user:db_password@localhost/db_name +LOCK_DSN=semaphore +###< symfony/lock ### \ No newline at end of file diff --git a/app/src/Form/RegistrationFormType.php b/app/src/Form/RegistrationFormType.php index 196c873..8402975 100644 --- a/app/src/Form/RegistrationFormType.php +++ b/app/src/Form/RegistrationFormType.php @@ -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', ]); } }