mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-31 15:29:32 +00:00
Added an mechanism to reset passwords via mail.
This commit is contained in:
parent
0716b8ff93
commit
6a0d027675
20 changed files with 2373 additions and 64 deletions
|
|
@ -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]
|
||||
];
|
||||
|
|
|
|||
3
config/packages/mailer.yaml
Normal file
3
config/packages/mailer.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
framework:
|
||||
mailer:
|
||||
dsn: '%env(MAILER_DSN)%'
|
||||
|
|
@ -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%'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue