msgphp / symfony-demo-app

A Symfony demo application with basic user management
https://github.com/msgphp/msgphp
MIT License
0 stars 0 forks source link

Multiple email - forgot password always sends email to primary email #68

Closed crabnky closed 3 years ago

crabnky commented 6 years ago

Hello,

As far as I can see the forgot password feature sends email to user primary email, regardless of email entered into the form, right? The email entered into forgot password form is used only to find user, then email is sent to users primary email... This may be confusing, I think.

ro0NL commented 6 years ago

Hi @crabnky

that's correct, and how things work today in the demo-app.

I think we can do the same thing as https://github.com/msgphp/msgphp/pull/204, so we have SomeUserEvent::$originUsername and SomeUserEvent::$user->getCredential()->getUsername() in all user related events. Feel free to make the change :)