codeforbtv / cvoeo-app

The "Money on My Mind" app helps CVOEO's Reach-Up clients stay on track with their personal finance coaching.
Apache License 2.0
11 stars 4 forks source link

"Email not found" response for registration/password reset #156

Open doub1ejack opened 5 years ago

doub1ejack commented 5 years ago

Currently if a user does not have an active account and they request a password-reset email (via "forgot password" or "register" links) the app will incorrectly tell them that a password was sent.

Before sending the password (in resetPassword() in data-sources/firebase-data.js), we should check to see if the email matches a valid account and give the user feedback accordingly.

jfenner commented 5 years ago

I would actually disagree with this from a security standpoint. I implemented the password reset this way because it is a security risk to tell them that the email is not valid.

We could change the message to be something like "If your email address is registered with the system, you will receive the password reset via email".