Problem
The login form previously trimmed leading/trailing whitespace from the email/username field before submitting credentials (originally fixed in FR-556). This behavior regressed during the Lit component removal migration — the React login handler no longer applies .trim() to the user ID value.
Steps to Reproduce
- Open the login screen.
- Type or paste an email/username with leading or trailing spaces.
- Submit the form.
- Login fails even with valid credentials.
Expected Behavior
Leading/trailing whitespace in the email/username field is stripped before the credentials are sent to the server (matching the behavior originally implemented in FR-556).
Root Cause (preliminary)
In react/src/components/LoginView.tsx, the connectUsingSession function reads the user_id field value without calling .trim(), unlike the connectUsingAPI path which does apply trim.
—
Captured while working on branch: main
JIRA Issue: FR-2522
Problem
The login form previously trimmed leading/trailing whitespace from the email/username field before submitting credentials (originally fixed in FR-556). This behavior regressed during the Lit component removal migration — the React login handler no longer applies
.trim()to the user ID value.Steps to Reproduce
Expected Behavior
Leading/trailing whitespace in the email/username field is stripped before the credentials are sent to the server (matching the behavior originally implemented in FR-556).
Root Cause (preliminary)
In
react/src/components/LoginView.tsx, theconnectUsingSessionfunction reads theuser_idfield value without calling.trim(), unlike theconnectUsingAPIpath which does apply trim.—
Captured while working on branch: main
JIRA Issue: FR-2522