Skip to content

Regression: login form no longer trims whitespace from email/username field #6597

@nowgnuesLee

Description

@nowgnuesLee

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

  1. Open the login screen.
  2. Type or paste an email/username with leading or trailing spaces.
  3. Submit the form.
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions