Commit d9704ef3 authored by asmundh's avatar asmundh
Browse files

Fix form-bug

parent 141ef533
......@@ -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">
......
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment