Skip to content

[Bug] partners inviting new users can enter invalid email addresses. (I entered newuser@example.co,) #3413

@scooter-dangle

Description

@scooter-dangle

Summary

Fix the email check when a partner is inviting user

Why

Prevents bad data and partner frustration. Makes incorrect data slightly less likely

Details

I tried this with newusers@example.co, which should not work, but creates a user.
With "Sam", it claims to create the user, but it does not appear in the list

Recreation

Sign in as verified@example.com
Click on the email in the top right
Click on "My co-workers"
Click on "Invite new user"
Enter newuser@example.co, in the email
Click on "Create User"

Criteria for completion

  • only validly formatted user ids are accepted when partners are inviting new users
  • tests to support that functionality

Note We're using email validation elsewhere (e.g., AccountRequest model). If that isn't wretched, use it here too!

Metadata

Metadata

Assignees

Labels

Good First IssueSuitable for users that are newer or less experiencedHelp WantedGroomed + open to all!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions