Jump to content

Why the API authorize to create 2 customers with same address mail with API ?


frelep

Recommended Posts

Hi everyone!
 
I have a functional question, via the GUI it's impossible to create two customers with the same email address. Why not ;-) 
Yet it is quite possible via the API, in fact I tried 3 times to send the same request to create a customer and the 3 customers are created. 
Why the API does not return an error saying that the email is already in use? Why this choice by Prestashop?
Without this error, it means proceed in two steps:
- Launch a first query to verify that the email does not exist
- If there is not, start a second query to create the client
Hoping of course that the client is not created between these 2 steps through any other system .....
 
Thank you in advance for your clarification.
 
P.S. : I'm using Prestashop Version 1.5.6.1

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...