Skip to content

Changes to forgotUsername route#159

Merged
Uttkarsh24 merged 1 commit intoTheGradients:mainfrom
Uttkarsh24:main
Jan 2, 2025
Merged

Changes to forgotUsername route#159
Uttkarsh24 merged 1 commit intoTheGradients:mainfrom
Uttkarsh24:main

Conversation

@Uttkarsh24
Copy link
Copy Markdown
Collaborator

This pull request introduces a new feature for handling the verification of usernames via email. It includes changes to both the controller and route files to implement this functionality.

New Feature: Username Verification via Email

  • Controller Updates:

    • Added a new function forgetUsernameVerificationEmail to handle sending verification codes to users' emails. This function generates a verification code, updates the user record with the code, and sends an email with the code.
    • Modified the existing forgotUsername function to include verification code validation. It now checks the provided code against the code stored in the user record before proceeding.
    • Exported the new function forgetUsernameVerificationEmail for use in other parts of the application.
  • Route Updates:

    • Imported the new forgetUsernameVerificationEmail function in the routes file.
    • Added a new route /forgetUsernameVerificationEmail to handle requests for sending username verification emails.

@Uttkarsh24 Uttkarsh24 merged commit bcf1dc2 into TheGradients:main Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant