Skip to content

Trim whitespace on invite member lookups

Doug Stull requested to merge 414749-fix-whitespace-on-invite-tokens into master

What does this MR do and why?

Trim whitespace on invite member lookups

  • fixes users not being found by email when there are whitespaces

📓 thread in https://gitlab.com/gitlab-org/gitlab/-/issues/414749#note_1423610479 about the issue. I believe the other error display messages will be solved by this as well.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen_Recording_2023-06-08_at_2.48.41_PM Screen_Recording_2023-06-08_at_2.47.50_PM

How to set up and validate locally

  1. Go to any group or project
  2. Attempt to invite an existing user by their email space and w/o space.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #414749

Edited by Doug Stull

Merge request reports