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

[FIX] Invalid domain part allowed in email during request for magic-link #920

Open
johnson-oragui opened this issue Aug 21, 2024 · 0 comments · Fixed by #924
Open

[FIX] Invalid domain part allowed in email during request for magic-link #920

johnson-oragui opened this issue Aug 21, 2024 · 0 comments · Fixed by #924
Assignees

Comments

@johnson-oragui
Copy link
Collaborator

Describe the bug
During a request for login via the use of magic-link, invalid emails(incorrect domain part) is allowed, example [email protected].

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://staging.api-python.boilerplate.hng.tech/api/v1/auth/magic-link'
  2. Enter 'enter [email protected]'
  3. Click on 'execute'
  4. See error (Email sent to the invalid email)

Expected behavior
A field validation error should be returned with some message with details of the wrong email format.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Browser brave
  • Version 22

ENTER INVALID EMAIL
bug magic link allow invalid email

INVALID EMAIL ACCEPTED
bug magic link sends email to invalid email

Additional context

@johnson-oragui johnson-oragui self-assigned this Aug 21, 2024
@johnson-oragui johnson-oragui linked a pull request Aug 22, 2024 that will close this issue
9 tasks
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 a pull request may close this issue.

1 participant