Revert "Add authentication on payement"

This reverts commit 64e64373ce.
This commit is contained in:
2025-12-09 19:20:09 +01:00
parent 6565475095
commit 18a549be07
3 changed files with 42 additions and 5 deletions

View File

@@ -100,17 +100,15 @@
btnPay.addEventListener("click", async() => {
let token = document.getElementById("token-input").value;
let dataToken = {
token: token
};
let creds = JSON.parse(localStorage.getItem("creds"));
await fetch("/payment", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Basic ${creds.username}:${creds.password}`
"Content-Type": "application/json"
},
body: JSON.stringify(dataToken)
})