Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
918027c8
Commit
918027c8
authored
Apr 08, 2025
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP prevent automaticaly enabeling user at password creation #4
parent
a81efc21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
ResettingController.php
src/Controller/ResettingController.php
+5
-1
No files found.
src/Controller/ResettingController.php
View file @
918027c8
...
...
@@ -2,6 +2,7 @@
namespace
App\Controller
;
use
FOS\UserBundle\Event\FilterUserResponseEvent
;
use
Symfony\Bundle\FrameworkBundle\Controller\AbstractController
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
...
...
@@ -61,7 +62,10 @@ class ResettingController extends AbstractController
$response
=
new
RedirectResponse
(
$this
->
generateUrl
(
'fos_user_profile_show'
));
}
$this
->
dispatcher
->
dispatch
(
new
\Symfony\Component\EventDispatcher\GenericEvent
(
$user
),
FOSUserEvents
::
RESETTING_RESET_COMPLETED
);
$this
->
eventDispatcher
->
dispatch
(
new
FilterUserResponseEvent
(
$user
,
$request
,
$response
),
FOSUserEvents
::
RESETTING_RESET_COMPLETED
);
return
$response
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment