-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coerce emails to lower #267
Comments
The point is, emails are not case sensitive, so we should coerce them into lower to prevent situations where the same email is reused with a certain degree of capitalization changes. We use the |
This change, when pushed, will likely invalidate several API keys, which store user emails as their foreign key... |
Could this maybe have been done more efficiently using a validator in the pydantic model? SOmething like: @validator('username', 'email')
def to_lower(cls, value):
return value.lower() |
Originally posted by @signebedi in #239 (comment)
The text was updated successfully, but these errors were encountered: