Added an mechanism to reset passwords via mail.

This commit is contained in:
Jan Böhmer 2019-11-24 22:49:22 +01:00
parent 0716b8ff93
commit 6a0d027675
20 changed files with 2373 additions and 64 deletions

View file

@ -20,4 +20,5 @@ return [
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
DAMA\DoctrineTestBundle\DAMADoctrineTestBundle::class => ['test' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Gregwar\CaptchaBundle\GregwarCaptchaBundle::class => ['all' => true]
];

View file

@ -0,0 +1,3 @@
framework:
mailer:
dsn: '%env(MAILER_DSN)%'

View file

@ -5,6 +5,9 @@ twig:
form_themes: ['bootstrap_4_horizontal_layout.html.twig', 'Form/extendedBootstrap4_layout.html.twig', 'Form/permissionLayout.html.twig' ]
exception_controller: ~
paths:
'%kernel.project_dir%/assets/css': css
globals:
partdb_title: '%partdb_title%'
default_currency: '%default_currency%'

View file

@ -17,6 +17,8 @@ parameters:
# Allow users to download attachments to server. Warning: This can be dangerous, because via that feature attackers maybe can access ressources on your intranet!
allow_attachments_downloads: false
demo_mode: '%env(bool:DEMO_MODE)%' # If set to true, all potentially dangerous things are disabled (like changing passwords of the own user)
sender_email: 'noreply@partdb.changeme'
sender_name: 'Part-DB Mailer'
services:
# default configuration for services in *this* file
@ -36,6 +38,12 @@ services:
resource: '../src/Controller'
tags: ['controller.service_arguments']
App\EventSubscriber\MailFromListener:
tags: ['kernel.event_subscriber']
arguments:
$email: '%sender_email%'
$name: '%sender_name%'
Liip\ImagineBundle\Service\FilterService:
alias: 'liip_imagine.service.filter'