RocketChat / RocketChat/Rocket.Chat
bug: Extra spaces (Leading and Trailing Spaces) in email in register form marks email as invalid
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
Extra spaces (leading and trailing spaces) in the email field within the registration form result in the email being marked as invalid.
https://github.com/RocketChat/Rocket.Chat/assets/64376712/4094461d-6d27-4dae-9d88-affe80f2e4ff
Steps to reproduce:
- Go to the User Registration (Signup) Page
- Fill in Leading or Trailing spaces in Email.
- "The Email is invalid" error will be shown
Expected behavior:
- The extra spaces should have been trimmed and then validated email.
Client Setup Information
Chrome
Operating System: macOS
Version - 6.6.0-develop
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the User Registration (Signup) page and trace the email field's validation. Reproduce the issue with leading and trailing spaces in Chrome, then verify that the spaces are trimmed before validation and that a valid email is accepted; add or update coverage if the relevant validation tests are found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100