Skip to content
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

Possible to save multiple logs for same email using different letter case #33

Open
jmauzyk opened this issue Nov 22, 2024 · 0 comments
Open

Comments

@jmauzyk
Copy link

jmauzyk commented Nov 22, 2024

Describe the bug

If a log already exists for a specific variant ID with an email address (e.g., [email protected]), any attempt to register interest again using the exact same email address fails validation, as expected.

However, if the same email address is entered with different letter casing (e.g., [email protected]), it is saved as a new record. This behavior can result in duplicate notifications being sent when the variant returns to stock.

Steps to reproduce

  1. Register interest for a product using an email.
  2. Attempt to register interest for a product but change the letter case for some characters in the email address.
  3. Interest is logged rather than returning validation error.

Craft CMS version

4.13.2

Plugin version

3.0.3

Multi-site?

Yes

Additional context

DB driver is PostgreSQL 14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant