Forgot password feature was implemented, once user enters their email, if an account exists, reset link is sent to their mail. Appropriate error handling is also implemented.
Fixes #245
Type of change
[x] New feature (non-breaking change which adds functionality)
[x] Refactor (does not change functionality, e.g. code style improvements, linting)
As this mail is sent on using local-host for testing purposes, the newPassword screen can be accessed by uncommenting out a line of code which is mentioned in the resetPassword method. We can do this in the later stages of the application, before deploying the app.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings
Maintainer Checklist
[ ] closes #xxxx (Replace xxxx with the GitHub issue number)
Description
Forgot password feature was implemented, once user enters their email, if an account exists, reset link is sent to their mail. Appropriate error handling is also implemented.
Fixes #245
Type of change
How Has This Been Tested?
https://github.com/AOSSIE-Org/Resonate/assets/114871036/54bce4e1-eba1-4cc2-945c-8dff9eb09158
To consider
As this mail is sent on using local-host for testing purposes, the newPassword screen can be accessed by uncommenting out a line of code which is mentioned in the resetPassword method. We can do this in the later stages of the application, before deploying the app.
Checklist:
Maintainer Checklist