diff --git a/frontend/static/js/views/accounts/RegisterView.js b/frontend/static/js/views/accounts/RegisterView.js index 7f52a7d..7e185e7 100644 --- a/frontend/static/js/views/accounts/RegisterView.js +++ b/frontend/static/js/views/accounts/RegisterView.js @@ -1,10 +1,11 @@ import { client, navigateTo } from "../../index.js"; +import { clear, fill_errors } from "../../utils/formUtils.js"; import AbstractNonAuthentifiedView from "../AbstractNonAuthentified.js"; async function register() { - let username = document.getElementById("username").value; - let password = document.getElementById("password").value; + let username = document.getElementById("username-input").value; + let password = document.getElementById("password-input").value; let response_data = await client.account.create(username, password);