Return an error message if the user doesn't exist inside ReviseAuth::PasswordResetsController #84
-
Hello, So I was reviewing the code and taking a look inside ReviseAuth::PasswordResetsController I noticed that in the create action, you're ignoring cases where the user enters an incorrect email and no error message is returned.
shouldn't we return an error message instead of using the safe navigation operator? |
Beta Was this translation helpful? Give feedback.
Answered by
excid3
Jun 10, 2024
Replies: 1 comment 1 reply
-
No, the general best practice here is to send the same message either way. It helps prevent people checking if an account is registered with that email if someone is trying to do malicious things. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ahmadabdelhalim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, the general best practice here is to send the same message either way. It helps prevent people checking if an account is registered with that email if someone is trying to do malicious things.