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

🐞[bug]: Forgot Password shows incorrect email FORMAT #769

Closed
4 tasks done
sania-2912 opened this issue Oct 27, 2024 · 2 comments · Fixed by #800
Closed
4 tasks done

🐞[bug]: Forgot Password shows incorrect email FORMAT #769

sania-2912 opened this issue Oct 27, 2024 · 2 comments · Fixed by #800
Labels
bug Something isn't working enhancement New feature or request gssoc-ext hacktoberfest-accepted

Comments

@sania-2912
Copy link
Contributor

sania-2912 commented Oct 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The "Forgot Password" feature currently displays an error message indicating "incorrect email format" when the user enters an invalid email format.

suggestions:
Real-Time Validation: Add client-side validation using HTML5 (type="email") or JavaScript regex patterns to check the email format as the user types. This helps users catch and fix errors immediately, reducing submission delays and avoiding unnecessary server-side error messages.

Clear Error Messaging: Update the error message to be more specific, e.g., “The email format is invalid. Ensure it includes ‘@’ and a domain name (e.g., user@example.com).” Additionally, use a placeholder like "name@example.com" in the email field to guide users on the correct format.

Expected behavior

1.As users type in the email field, real-time validation highlights any format issues, prompting immediate correction without needing to submit the form.

  1. If an invalid format is entered, a clear and specific error message appears (e.g., “The email format is invalid. Ensure it includes ‘@’ and a domain name”), and the field shows a helpful placeholder (e.g., "name@example.com") to guide users on the correct input format.

Add ScreenShots

Screenshot 2024-10-27 183351

What browsers are you seeing the problem on?

No response

Record

  • I have read the Contributing Guidelines
  • I'm a GSSOC'24EXTD contributor
  • I have starred the repository
Copy link

Hi there! Thanks for opening this issue @sania-2912!. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible.

@github-actions github-actions bot added the bug Something isn't working label Oct 27, 2024
@sania-2912
Copy link
Contributor Author

@Anjaliavv51 kindly assign this issue to me.

Anjaliavv51 added a commit that referenced this issue Oct 31, 2024
Forgot Password shows incorrect email FORMAT
Description
As users type in the email field, real-time validation highlights any
format issues, prompting immediate correction without needing to submit
the form.

If an invalid format is entered, a clear and specific error message
appears (e.g., “The email format is invalid. Ensure it includes ‘@’ and
a domain name”), and the field shows a helpful placeholder (e.g.,
"[name@example.com](mailto:name@example.com)") to guide users on the
correct input format.

- Closes #769 

## Type of PR
- [x] (Bug)

## Screenshots / videos (if applicable)
Before:
![Screenshot 2024-10-31
143622](https://github.com/user-attachments/assets/ab1030aa-a9d8-40d0-aa6f-5d1e9c007826)


 After:
![Screenshot 2024-10-31
143633](https://github.com/user-attachments/assets/74594069-ae70-4680-9a8e-fd98c12215e5)
![Screenshot 2024-10-31
143647](https://github.com/user-attachments/assets/e68f8885-f97c-4403-9884-bd262b9ef0b2)



## Checklist
<!-- [X] - put a cross/X inside [] to check the box -->
- [X] I have gone through the [contributing
guide](https://github.com/Anjaliavv51/Retro)
- [X] I have updated my branch and synced it with project `main` branch
before making this PR
- [X] I have performed a self-review of my code
- [X] I have tested the changes thoroughly before submitting this pull
request.
- [X] I have provided relevant issue numbers, screenshots, and videos
after making the changes.
- [X] I have commented my code, particularly in hard-to-understand
areas.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request gssoc-ext hacktoberfest-accepted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant