mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
allow users to recover password
This commit is contained in:
@@ -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 }
|
4
Resources/config/routing/password.yml
Normal file
4
Resources/config/routing/password.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
change_my_password:
|
||||
path: /edit
|
||||
defaults: { _controller: ChillMainBundle:Password:userPassword }
|
||||
|
15
Resources/config/routing/password_recover.yml
Normal file
15
Resources/config/routing/password_recover.yml
Normal 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 }
|
10
Resources/config/services/notification.yml
Normal file
10
Resources/config/services/notification.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
Chill\MainBundle\Notification\Mailer:
|
||||
arguments:
|
||||
- "@logger"
|
||||
- "@twig"
|
||||
- "@mailer"
|
||||
- "@swiftmailer.transport"
|
||||
- "@router"
|
||||
- "@translator"
|
||||
- "%chill_main.notifications%"
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user