Updated files
/Analytics/app.py - the forgot_password.py resource class is imported and the /forgot_password endpoint is exposed
New Files
/resources/forgot_password.py - Implements the functionality of the /forgot_password POST endpoint. This functionality involves:1) extracting the user's email from the body of the post request 2) create a system generated password 3) send a user an email (using sendgrid) with this system generated password and prompts them to login with this password 4) changing the users password to the system generated password.
/resources/forgot_password_email.py - Contains the html that will be included in the email sent to the user in the form of a formatted string so that the user's fullname and system generated password can be included
/resources/test_forgot_password.py - Contains the unit tests for the /forgot_password endpoint
Updated files /Analytics/app.py - the forgot_password.py resource class is imported and the /forgot_password endpoint is exposed
New Files /resources/forgot_password.py - Implements the functionality of the /forgot_password POST endpoint. This functionality involves:1) extracting the user's email from the body of the post request 2) create a system generated password 3) send a user an email (using sendgrid) with this system generated password and prompts them to login with this password 4) changing the users password to the system generated password.
/resources/forgot_password_email.py - Contains the html that will be included in the email sent to the user in the form of a formatted string so that the user's fullname and system generated password can be included
/resources/test_forgot_password.py - Contains the unit tests for the /forgot_password endpoint