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:
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:
validated email in the database
And a red text box saying no email exists is sent otherwise:
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: 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: