Revert "Add authentication on payement"
This reverts commit 64e64373ce.
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user