Skip to content

Fix/trim username whitespace before login validation#627

Open
fabian-mv wants to merge 1 commit intoopenpredictionmarkets:mainfrom
fabian-mv:fix/login-username-whitespace
Open

Fix/trim username whitespace before login validation#627
fabian-mv wants to merge 1 commit intoopenpredictionmarkets:mainfrom
fabian-mv:fix/login-username-whitespace

Conversation

@fabian-mv
Copy link

Fixes #582

Summary

  • Trim username whitespace on both frontend and backend before validation
  • Added test case for whitespace-only username (should fail validation)
  • Added TestLoginHandler_TrimsUsernameWhitespace verifying leading/trailing spaces are trimmed before DB lookup
  • All existing tests pass 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trim Whitespace When Logging In

1 participant