webrecorder / browsertrix

Browsertrix is the hosted, high-fidelity, browser-based crawling service from Webrecorder designed to make web archiving easier and more accessible for all!
https://webrecorder.net/browsertrix
GNU Affero General Public License v3.0
201 stars 35 forks source link

[Bug]: Invites to email with uppercase domain resulted in invalid_invite when registering #2083

Closed ikreymer closed 2 months ago

ikreymer commented 2 months ago

Browsertrix Version

v1.11.6

What did you expect to happen? What happened instead?

Due to inconsistent use of EmailStr and str type, invites to an upper case e-mail, eg. Example@EXample.com where being matched incorrectly due to inconsistent case conversion. Using pydantic's EmailStr when dealing with emails should ensure consistent casing for comparison, and avoid invites being rejected.

Reproduction instructions

  1. Invite user with email such as Example@EXample.com
  2. Attempt to register with invite
  3. Observe invalid_invite error despite correct email

Screenshots / Video

No response

Environment

No response

Additional details

No response