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

[FEAT]: Backend Endpoint for Sending Verification Token #630

Merged
merged 4 commits into from
Aug 24, 2024

Conversation

Ofektom
Copy link
Collaborator

@Ofektom Ofektom commented Aug 24, 2024

Description

Implement a backend endpoint that sends a verification token to the user’s registered email upon account creation or email update. This token will be used to verify the user’s email address.

Changes made

  • Created POST endpoint to send verification token to user email
  • Created methods for business logic for the endpoint to be implemented
  • Created POST endpoint to accept the 6 digit token

How to test

Endpoint

/api/v1/auth/request/token

Request Body

{
    "email": "okpohot@gmail.com"
}

Response

"Verification email sent successfully"

Related Issue

This feature is related to the issue

@Ofektom
Copy link
Collaborator Author

Ofektom commented Aug 24, 2024

@Am0du @Adewale66 please review

@Ofektom
Copy link
Collaborator Author

Ofektom commented Aug 24, 2024

@Adewale66 @Am0du confirm this

Adewale66
Adewale66 previously approved these changes Aug 24, 2024
Copy link
Collaborator

@Adewale66 Adewale66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Am0du
Copy link
Contributor

Am0du commented Aug 24, 2024

You have conflict @Ofektom

@Ofektom
Copy link
Collaborator Author

Ofektom commented Aug 24, 2024

@lurldgbodex @gurumarv @Fifetoyi please review and merge

@Ofektom
Copy link
Collaborator Author

Ofektom commented Aug 24, 2024

@Am0du Conflict resolved

@Fifetoyi
Copy link
Collaborator

some conflicts here

@Ofektom
Copy link
Collaborator Author

Ofektom commented Aug 24, 2024

@Fifetoyi resolved

Copy link
Collaborator

@Fifetoyi Fifetoyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Fifetoyi Fifetoyi merged commit 0eb19fa into dev Aug 24, 2024
3 checks passed
@Ofektom Ofektom deleted the feat/verify-otp branch August 26, 2024 19:16
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.

4 participants