pluginever / wc-serial-numbers

The best WordPress Plugin to sell license keys, redeem cards and other secret numbers!
11 stars 12 forks source link

Email validation in API response #361

Closed owadud closed 1 year ago

owadud commented 1 year ago

Describe the bug

Email validation in URL is not fully accurate.

When I activate a serial, it does not validate the email address to the order number. If the order's email address is "test@test.com" and I activate the serial and put in "asdfasdf" as the email, it still responds with "{"success":true,"data":{"code":"key_activated","

To Reproduce

Steps to reproduce the behavior:

  1. Go to the 'serial keys' page and copy a key.
  2. Go to the API URL to activate the key.
  3. Enter a wrong email like this sdf, don't complete it.
  4. See the response.
owadud commented 1 year ago

Now another issue appears.

Now if any customer places an order with a capital email, for example, "plugnEVER@mail.com",

Then the keys can't be activated until we manually change the email address to lowercase.

owadud commented 1 year ago

fixed