FOSUserBundle icon indicating copy to clipboard operation
FOSUserBundle copied to clipboard

[Reset password] event error not exist

Open poohia opened this issue 7 years ago • 0 comments

Symfony FOSUserBundle versions:

2.0.*

Description of the problem including expected versus actual behavior:

I need catch event when user want reset password with bad email or before 2 hours than the first trying

Steps to reproduce:

  1. Reset password with existing email ( or not but don't do step 2 )
  2. Do step 1 again ( less 2 hours before )

Provide logs (if relevant):

Describe the feature:

vendor/friendsofsymfony/user-bundle/Controller/ResettingController.php

if (null !== $user && !$user->isPasswordRequestNonExpired($ttl)) { 
  ....
}

We can have else like $dispatcher->dispatch(FOSUserEvents::RESETTING_FORM_ERROR, $event);

poohia avatar Mar 08 '18 15:03 poohia