Open Closed

Feature request: canonicalize emails (dots and plus addressing) before the unique-email check at registration #10970


User avatar
0
ya-dev created

Summary

The Account/Identity modules let one mailbox register several accounts, even with RequireUniqueEmail enabled. The unique-email check runs on NormalizedEmail, and the default ILookupNormalizer only upper-cases the address. Addresses that are different strings but go to the same mailbox are therefore treated as different users.

Environment

Observed on an ABP Commercial application:

  • Angular UI, separated auth server, LeptonX theme
  • Built-in Volo.Abp.Account.Public.Web Register page (RegisterModel), no custom registration code
  • Abp.Account.IsSelfRegistrationEnabled = true
  • Abp.Identity.SignIn.RequireEmailVerificationToRegister = true
  • Abp.Account.Captcha.UseCaptchaOnRegistration = false

Email verification does not prevent this: each alias's verification mail lands in the same inbox and is confirmed there. Captcha would only slow down automated sign-ups. It would not stop one person from opening several accounts by hand.

Examples (all delivered to the same inbox)

  • Plus addressing / subaddressing (RFC 5233): name+anything@domain.com goes to name@domain.com. Gmail, Outlook/Hotmail, iCloud, Proton, Fastmail and most corporate mail servers support it.
  • Gmail ignores dots in the local part: first.last@gmail.com = firstlast@gmail.com (also on googlemail.com).

Impact

  • One person can create an unlimited number of accounts with a single mailbox (multi-accounting).
  • Any per-account limit (free trial, quota, credits) can easily be bypassed.
  • User and sign-up statistics are inflated.

Steps to reproduce

  1. On an ABP application with self-registration and email verification enabled, register with firstlast@gmail.com and verify it.
  2. Register with first.last@gmail.com. The verification mail arrives in the same inbox. After verification, a second, separate account exists.
  3. Register with firstlast+test@gmail.com. This also creates a separate account.

Request

Please add email canonicalization to the unique-email check in the Account/Identity modules, as a built-in option that applications can turn on or off (for example IdentityOptions.User.CanonicalizeEmail or an Account setting). The canonical form should be built as follows:

  1. Trim and lower-case the whole address.
  2. Remove + and everything after it in the local part, for all domains.
  3. For gmail.com / googlemail.com only, remove dots from the local part and treat googlemail.com as gmail.com. Dots are significant on other domains, so this rule must not apply to them.

The address the user typed must still be stored and used for sending mail. Only the uniqueness check uses the canonical form. Login by email, email login links, email confirmation and password reset must keep working with the address the user registered.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

No answer yet!
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v11.1.0-preview. Updated on November 20, 2026, 13:33
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.