yii2-usuario
yii2-usuario copied to clipboard
Update PasswordRecoveryService to check if the user exist before send…
… email.
| Q | A |
|---|---|
| Is bugfix? | yes |
| New feature? | yes |
| Breaks BC? | no |
| Fixed issues | Check if the user exist before send email. |
Why this change? Can't you trap RuntimeException and handle the error in the application, can you?
I do not like the mechanics of being able to check if an user exists or not. I think the default "blind" way is good and should not be changed unless any serious arguments are presented.
Agree with @TonisOrmisson. If you want this change to be merged, it should be controlled by a configuration parameter, but the default behavior must be the current one.