Skip to content

Commit

Permalink
Merge pull request #17 from albusss/auth_improvement
Browse files Browse the repository at this point in the history
added lock to env.local
  • Loading branch information
albusss authored Oct 21, 2021
2 parents 2a7af5b + 5e2e44a commit e6e4712
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/.env.local
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ DATABASE_URL="mysql://lux_admin:&pHDG3%LcV@database:3306/lux?serverVersion=8.0"
# DATABASE_URL="postgresql://db_user:[email protected]:5432/db_name?serverVersion=13&charset=utf8"
###< doctrine/doctrine-bundle ###

MAIL_TO_ADDRESS=[email protected]
MAIL_TO_ADDRESS=[email protected]

###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=semaphore
###< symfony/lock ###
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 e6e4712

Please sign in to comment.