Murali-group / GraphSpace

The interactive graph sharing website.
http://graphspace.org
GNU General Public License v2.0
30 stars 41 forks source link

"Forgot Password" error: Validates that the email exists in the database #444

Closed jddanna closed 3 years ago

jddanna commented 3 years ago

Purpose

Avoids sending error page to users when an exception arises. The exception page would arise if an email was entered into the "forgot_password" was an email that didn't exist in the database.

Example: Fixes #443

Approach

Error page: image We need to validate the user email before an exception arises where we are searching the database for an email that does not exist in it. Now a green text box saying an email was sent is shown for all cases:

And a red text box saying no email exists is sent otherwise: