Aktionen
GX-Bug #70102
geschlossenGuest accounts could be registered with existing email from API v3
Status:
Erledigt
Priorität:
Dringend
Zugewiesen an:
Alexandre Ataides
Kategorie:
REST-API
Zielversion:
% erledigt:
0%
Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
Unbestimmt
Release Notes Langtext:
Ein Problem wurde behoben, das dazu führte, dass mehrere Gastkunden mit der gleichen E-Mail erstellt wurden.
Beschreibung
creating a guest account via API V3 with pre-existing email (z.B: admin@example.org) should not be possible.
steps to reproduce:
Create a guest with the following json with the v3 api endpoint {{baseUrl}}/api.php/v3/customers/register
[POST]
[ { "customerGroup": 1, "isFavorite": true, "personalInformation": { "gender": "m", "firstName": "John", "lastName": "Doe", "dateOfBirth": "2022-01-30 08:30:00", "customerNumber": "12345-AB" }, "contactInformation": { "email": "j.doe@mail.com", "phoneNumber": "+49 152 012345", "faxNumber": "+49 152 054321" }, "businessInformation": { "companyName": "Gambio GmbH", "vatId": "DE 123456789", "isTradesperson": true, "isValidVatId": true }, "locationInformation": { "streetName": "Parallelweg", "houseNumber": "30", "postcode": "28219", "city": "Bremen", "country": { "name": "Germany", "isoCode2": "DE" }, "additionalInformation": "", "suburb": "Walle", "state": "Bremen" }, "password": "12345", "credit": 999.99 } ]
Expected:
Successful registration for the first time but an error with the message Email address \"j.doe@mail.com\" is already taken.
Actual:
Successful registration every time a pre-existing email is used.
Aktionen