upd: register.js

Fix error in csrfToken element
This commit is contained in:
Ryan Prather 2025-04-27 22:54:12 -04:00
parent 13bcafcebf
commit eb2366ebd8

View File

@ -3,7 +3,7 @@ const nameInput = document.getElementById("name");
const emailInput = document.getElementById("emailAddress"); const emailInput = document.getElementById("emailAddress");
const passwordInput = document.getElementById("password"); const passwordInput = document.getElementById("password");
const confirmPasswordInput = document.getElementById("confirmPassword"); const confirmPasswordInput = document.getElementById("confirmPassword");
const csrfToken = document.getElementById("csrfToken").value; const csrfToken = document.getElementById("registration_form__token").value;
// Add event listeners to the form // Add event listeners to the form
const registerBtn = document.querySelector("#register-btn"); const registerBtn = document.querySelector("#register-btn");