Skip to content

Commit c9b8ad1

Browse files
committed
fix(FR-2522): trim whitespace from login email/username field
Add .trim() to user_id value in connectUsingSession to match the existing behavior in connectUsingAPI. This regression was introduced during the Lit component removal migration. Resolves #6597(FR-2522)
1 parent 81acb9a commit c9b8ad1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

react/src/components/LoginView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ const LoginView: React.FC = () => {
366366
return;
367367
}
368368

369-
const userId = form.getFieldValue('user_id') || '';
369+
const userId = (form.getFieldValue('user_id') || '').trim();
370370
const password = form.getFieldValue('password') || '';
371371
const otp = form.getFieldValue('otp') || '';
372372

0 commit comments

Comments
 (0)