allow users to recover password

This commit is contained in:
2018-08-17 13:32:08 +02:00
parent 5b1ba71a8a
commit 1fd6a4ed2c
22 changed files with 896 additions and 11 deletions

View File

@@ -21,6 +21,14 @@ chill_main_exports:
chill_postal_code:
resource: "@ChillMainBundle/Resources/config/routing/postal-code.yml"
prefix: "{_locale}/postal-code"
chill_password:
resource: "@ChillMainBundle/Resources/config/routing/password.yml"
prefix: "{_locale}/password"
chill_password_recover:
resource: "@ChillMainBundle/Resources/config/routing/password_recover.yml"
prefix: "public/{_locale}/password"
root:
path: /
@@ -78,7 +86,3 @@ login_check:
logout:
path: /logout
change_my_password:
path: /{_locale}/password/edit
defaults: { _controller: ChillMainBundle:Password:userPassword }

View File

@@ -0,0 +1,4 @@
change_my_password:
path: /edit
defaults: { _controller: ChillMainBundle:Password:userPassword }

View File

@@ -0,0 +1,15 @@
password_recover:
path: /recover
defaults: { _controller: ChillMainBundle:Password:recover }
password_request_recover:
path: /request-recover
defaults: { _controller: ChillMainBundle:Password:requestRecover }
password_request_recover_confirm:
path: /request-confirm
defaults: { _controller: ChillMainBundle:Password:requestRecoverConfirm }
password_request_recover_changed:
path: /request-changed
defaults: { _controller: ChillMainBundle:Password:changeConfirmed }

View File

@@ -0,0 +1,10 @@
services:
Chill\MainBundle\Notification\Mailer:
arguments:
- "@logger"
- "@twig"
- "@mailer"
- "@swiftmailer.transport"
- "@router"
- "@translator"
- "%chill_main.notifications%"

View File

@@ -20,4 +20,15 @@ services:
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
tags:
- { name: security.voter }
Chill\MainBundle\Security\PasswordRecover\TokenManager:
arguments:
$secret: 'secret'
$logger: '@Psr\Log\LoggerInterface'
Chill\MainBundle\Security\PasswordRecover\RecoverPasswordHelper:
arguments:
$tokenManager: '@Chill\MainBundle\Security\PasswordRecover\TokenManager'
$urlGenerator: '@Symfony\Component\Routing\Generator\UrlGeneratorInterface'
$mailer: '@Chill\MainBundle\Notification\Mailer'