diff --git a/frontend/www/register.html b/frontend/www/register.html index f5b8c3c10ff9a093469231478472e74547b22ee2..0140dcc01aac2c227d7558cb557954d29d0100fa 100644 --- a/frontend/www/register.html +++ b/frontend/www/register.html @@ -41,7 +41,7 @@ </div> <!-- form-group// --> <div class="input-group mb-2"> <span class="input-group-text"> <i class="fas fa-mobile"></i> </span> - <input class="form-control" name="phone" placeholder="Phone number" type="text" + <input class="form-control" name="phone_number" placeholder="Phone number" type="text" required> </div> <!-- form-group// --> <div class="input-group mb-2"> @@ -56,7 +56,7 @@ </div> <!-- form-group// --> <div class="input-group mb-2"> <span class="input-group-text"> <i class="fas fa-hotel"></i> </span> - <input class="form-control" name="address" placeholder="Street address" type="text" + <input class="form-control" name="street_address" placeholder="Street address" type="text" required> </div> <!-- form-group// --> <div class="d-grid"> diff --git a/frontend/www/scripts/register.js b/frontend/www/scripts/register.js index 59a71fe465cda4c8949deeafcee2e738a74628ec..2c3c323ce1a5f6222884ba161739106f1472de55 100644 --- a/frontend/www/scripts/register.js +++ b/frontend/www/scripts/register.js @@ -11,12 +11,12 @@ async function createNewUser(event) { } else { let body = { - username: formData.get("username"), - password: formData.get("password"), - phone: formData.get("phone"), - country: formData.get("country"), - city: formData.get("city"), - address: formData.get("address") + username: formData.get("username"), + password: formData.get("password"), + phone_number: formData.get("phone_number"), + country: formData.get("country"), + city: formData.get("city"), + street_address: formData.get("street_address") }; response = await sendRequest("POST", `${HOST}/api/token/`, body); if (response.ok) {