Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reset password] event error not exist #2752

Open
poohia opened this issue Mar 8, 2018 · 0 comments
Open

[Reset password] event error not exist #2752

poohia opened this issue Mar 8, 2018 · 0 comments

Comments

@poohia
Copy link

poohia commented Mar 8, 2018

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 poohia changed the title [Reset password] event error not existe [Reset password] event error not exist Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant