User invite email is case sensitive when accepting the invite
Summary
When accepting an invite to a team if the invite was sent to your email the email used in the invite is case sensitive and will show an error when trying to accept because the email addresses don't match when the only difference is in the case of the email address.
For example, my account email address is john@example.org but the invite was sent to John@example.org
When you click the link in the email to accept the invite you will be shown a screen that has the following:
The invitation was sent to John@example.org, but you are signed in as @johnexample with the email john@example.org.
Sign in as a user with the matching email address, add the email to this account, or sign-up for a new account using the matching email.
Steps to reproduce
Invite a user to a team using their email but with an uppercase first letter -> John@example.org Try to accept the invite when your account is using the email as 'john@example.org'
What is the current bug behavior?
The user is unable to accept the invite to the team as the emails don't match when the only difference is the case of the email address.
What is the expected correct behavior?
The user should be able to accept the invite.