Skip to content

Commit b63ed9a

Browse files
committed
fix(FR-2522): trim whitespace from login email/username field (#6598)
Resolves #6597 (FR-2522) ## Summary - Add `.trim()` to the `user_id` field value in `connectUsingSession` to strip leading/trailing whitespace before login - This matches the existing `.trim()` behavior in `connectUsingAPI` - Regression was introduced during the Lit component removal migration (originally fixed in FR-556) ## Verification ``` === ALL PASS === ``` ## Test plan - [ ] Type email with leading/trailing spaces in login form → login succeeds - [ ] Paste email with extra whitespace → login succeeds - [ ] Normal login without spaces → still works as before 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent c96b588 commit b63ed9a

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)