Skip to content

[Reset password] event error not exist #2752

Open
@poohia

Description

@poohia

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions