]> git.immae.eu Git - github/wallabag/wallabag.git/commit - src/Wallabag/UserBundle/EventListener/PasswordResettingListener.php
Use FOSUserEvents instead of c/p a controller
authorJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 21 Jan 2016 15:39:13 +0000 (16:39 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 21 Jan 2016 15:39:13 +0000 (16:39 +0100)
commit0f0e8eb82a3374e20453fb1f8046325ee306b036
tree4570046b6aa6b29c5ac0fd9289b433d80e69c207
parenta0d6ccc5ca0dc0082467cc65b006150aff2488c4
Use FOSUserEvents instead of c/p a controller

The `resetAction` was overriden to redirect user to the homepage instead of `fos_user_profile_show`.
Instead of copying the whole method we can simply use FOSUserEvents to handle that.
src/Wallabag/UserBundle/Controller/ResettingController.php [deleted file]
src/Wallabag/UserBundle/EventListener/PasswordResettingListener.php [new file with mode: 0644]
src/Wallabag/UserBundle/Resources/config/services.yml