Do not allow emails with trailing spaces to be added as invites
What does this MR do and why?
Do not allow emails with trailing spaces to be added as invites see https://gitlab.com/gitlab-org/gitlab/-/issues/414749#note_1433106116
- keeps us out of incorrect error reporting in the dom as seen below snapshot of current master behavior when email with spaces are used.
Changelog: fixed
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Visit any group or project that your user is owner/maintainer of.
- On the members page, click 'Invite members'
- Attempt to simulate scenario in screenshots on before(master) and now.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #414749
Edited by Doug Stull