Skip to content

Commit

Permalink
Trim Whitespaces in Username/Email Fields in EmbeddedChat Login Form (#…
Browse files Browse the repository at this point in the history
…657)

* trim whitespaces in username/email fields to prevent login issues

* Remove extra .trim()
  • Loading branch information
SinghaAnirban005 authored Nov 10, 2024
1 parent 36534fc commit e898504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/EmbeddedChatApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ export default class EmbeddedChatApi {
let credentials;
if (!code) {
credentials = credentials = {
user: userOrEmail,
user: userOrEmail.trim(),
password,
};
} else {
credentials = {
user: userOrEmail,
user: userOrEmail.trim(),
password,
code,
};
Expand Down

0 comments on commit e898504

Please sign in to comment.