SowinskiBraeden/school-management-api

Verify Personal Emails on register

Opened this issue · 0 comments

When any user, student, teacher or admin is being inserted into the system database, there is no check the email is validated.
If the email is not validated we should not be sending the temporary password to the email. Send a verification email, success will set the email to a verified email status and send the temporary password. If the email is not yet verified the user cannot login as they will not receive the temporary password.

If the email entered is incorrect, have an API endpoint to be able to change the email. This will be done by an admin who is enrolling the student into the system.