emails: automatically fix typos in email addresses.

Try to automatically fix various kind of typos and common mistakes in
email addresses when a user creates a new account. It's common for users
to signup with addresses like `name@gmai.com`, which leads to bounces
when we try to send the welcome email.
This commit is contained in:
evazion
2022-10-14 18:38:15 -05:00
parent 4dc1a109c5
commit edc7e52353
6 changed files with 187 additions and 19 deletions

View File

@@ -1,3 +1,4 @@
Rails.application.reloader.to_prepare do
ActiveRecord::Type.register(:ip_address, IpAddressType)
ActiveRecord::Type.register(:email_address, EmailAddressType)
end