mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
There is a legacy bug I just caught, where many accounts would have the same email but then have different casing. In extreme scenarios, this would lead to them creating a new user with the same email, or having issues with password reset and username lookup. This doesn't merge in the existing duplicates, but makes sure to only allow insensitive lowercase emails from here on out. It also will check for emails in a case insensitive way for such things as resets and logins if the sensitive lookup doesn't work. The implementation was not wrong per se - email is supposed to be case sensitive for usernames. But of course, nobody (nor do most/all email servers) treat them that way, leading to confusion situations where the user sometimes camelcases their email and then switches to lowercase later. |
||
---|---|---|
.. | ||
acceptance | ||
fabricators | ||
files | ||
stat_logs | ||
workers | ||
admin_tests.rb | ||
api_tests.rb | ||
environment.rb | ||
ext_tests.rb | ||
site_file_tests.rb | ||
site_tests.rb | ||
stat_tests.rb | ||
tag_tests.rb | ||
tempfile_tests.rb | ||
webhook_tests.rb |