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:
Go to the EmbeddedChat login form.
Enter a valid username or email, but include leading or trailing whitespaces.
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.
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.
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:
https://github.com/user-attachments/assets/1b9af213-686f-49b7-8945-a04624846140
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.
https://github.com/user-attachments/assets/1b47c6c1-3c7f-4dec-a5ce-515e0659530f
Reason for Trimming Whitespaces: