jdtornow / challah

User authorization and session management in Rails.
MIT License
18 stars 7 forks source link

Normalize email before validation #13

Closed thewatts closed 9 years ago

thewatts commented 9 years ago

We've had trouble with other apps where users create accounts with emails of differing cases.

Then, when finding those accounts - if it's saved as "HELLO@example.com", and we search for "hello@example.com" => we won't find the user.

Plus, if we allow for multiple cases, and we're validating on email uniqueness, then there can be multiple accounts of the same email - which creates a problem when we strive to go back and fix the underlying search issue after the app has been in production.

jdtornow commented 9 years ago

Thanks @thewatts!