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

Whitespace in Username/Email Input Prevents Login in EmbeddedChat Login Form #656

Open
SinghaAnirban005 opened this issue Nov 4, 2024 · 1 comment · May be fixed by #657
Open

Whitespace in Username/Email Input Prevents Login in EmbeddedChat Login Form #656

SinghaAnirban005 opened this issue Nov 4, 2024 · 1 comment · May be fixed by #657
Labels
bug Something isn't working

Comments

@SinghaAnirban005
Copy link

Description:

When logging in through the EmbeddedChat form, if extra whitespaces are added to the beginning or end of the username or email, the system doesn’t trim these whitespaces. This causes the login to fail, even though the credentials are otherwise correct.

Steps to reproduce:

  1. Go to the EmbeddedChat login form.
  2. Enter a valid username or email, but include leading or trailing whitespaces.
  3. Attempt to log in.
Create.an.account.-.Singha.-.Brave.2024-11-04.12-31-42.mp4

From the above video it is clear that password's allow whitespaces along with text but the same is not allowed with username or email
so i shall not trim the password input box

Expected behavior:

The system should automatically trim any whitespaces from the beginning or end of the username or email, allowing the login attempt to proceed if the credentials are correct.

Actual behavior:

The system does not trim whitespaces, causing a login failure.

EmbeddedChat._.Simple.-.Simple.Storybook.-.Brave.2024-11-04.12-42-49.mp4

Reason for Trimming Whitespaces:

  • Prevents Accidental Login Failures: Users often accidentally add spaces before or after their input, especially on mobile devices. Trimming removes these unintended spaces, reducing the chance of failed login attempts due to formatting issues.
  • Aligns with User Expectations: Most applications already trim whitespaces, so users typically expect that accidental spaces won’t affect their login.
@SinghaAnirban005 SinghaAnirban005 added the bug Something isn't working label Nov 4, 2024
@SinghaAnirban005
Copy link
Author

Will raise a PR soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant