Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Implement Forgot Password Functionality #75

Open
6 tasks
RutikKulkarni opened this issue Aug 3, 2024 · 0 comments
Open
6 tasks

Feature: Implement Forgot Password Functionality #75

RutikKulkarni opened this issue Aug 3, 2024 · 0 comments
Labels
Backend Issues pertaining to server-side logic, APIs, databases, and business logic implementation enhancement New feature or request Frontend Issues related to user interface, design, and client-side functionality of the application

Comments

@RutikKulkarni
Copy link
Owner

RutikKulkarni commented Aug 3, 2024

Add a forgot password feature to the application that allows users to reset their passwords. This includes email verification, password reset logic, and user notifications.

Details:

  1. Email Verification:

    • When the user submits their email address, verify if an account exists for that email.
    • If no account exists, display a warning message using enqueueSnackbar indicating that the user should first register/sign up with this email or that no account is associated with the provided email.
    • If an account exists, send a password reset link to the user's email address and display a message indicating that the email has been sent.
  2. Password Reset:

    • After the user receives the reset link via email, they will be redirected to a page where they can set a new password.
    • Ensure the new password meets a minimum length requirement of 6 characters.
    • Display a success message using enqueueSnackbar upon successful password reset.
    • Redirect the user to the login page after a successful password reset.
  3. UI Behavior:

    • Show a loading spinner while the email is being processed.
    • Display appropriate messages based on the success or failure of the email submission and password reset actions.

Code Reference:
Please refer to the implementation of the Forgot Password functionality in the Forgot.jsx file available at: Forgot.jsx Code.

Acceptance Criteria:

  • Verify if the email provided has an associated account.
  • Show a warning message if no account is associated with the provided email.
  • Send a password reset link to the user’s email and show a message indicating the email has been sent.
  • Ensure the new password meets the minimum length requirement of 6 characters.
  • Display success or error messages using enqueueSnackbar based on the outcome of the actions.
  • Redirect to the login page after successful password reset.

Additional Notes:

  • The enqueueSnackbar utility for displaying messages is already implemented in the utils folder. Use this utility for showing notifications.
@RutikKulkarni RutikKulkarni added enhancement New feature or request Frontend Issues related to user interface, design, and client-side functionality of the application Backend Issues pertaining to server-side logic, APIs, databases, and business logic implementation labels Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Issues pertaining to server-side logic, APIs, databases, and business logic implementation enhancement New feature or request Frontend Issues related to user interface, design, and client-side functionality of the application
Projects
None yet
Development

No branches or pull requests

1 participant