hngprojects / hng_boilerplate_java_web

Apache License 2.0
155 stars 43 forks source link

feat: magic link mail #634

Closed Ofektom closed 1 month ago

Ofektom commented 1 month ago

Description

Develop a backend endpoint that generates and sends a magic link to a user’s email for quick login without a password. The magic link should contain a secure token that, when clicked, logs the user into their account.

Changes made

Endpoint

/api/v1/auth/magic-link

Request Body

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

Response

"Magic link sent successfully! Go to your email to login"

Related Issue

The feature is related to the issue

Ofektom commented 1 month ago

@Am0du @Adewale66 please review this

Ofektom commented 1 month ago

The PR includes some fixes in the response body and the super admin password as requested by a developer for urgent use

Am0du commented 1 month ago

@Ofektom please you have conflicts

Ofektom commented 1 month ago

@Am0du I have resolved it

lurldgbodex commented 1 month ago

you still have conflict

Ofektom commented 1 month ago

@lurldgbodex resolved

Ofektom commented 1 month ago

@Fifetoyi please check