This commit is contained in:
Nikola Petrov
2023-10-12 22:37:29 +02:00
parent 6d3dcc773d
commit 2b0572c140
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ "password": password }),
body: JSON.stringify({ "pass": password }),
})
const data = await response.json();
document.getElementById('text').innerHTML = data.message;
@@ -52,7 +52,7 @@
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ "password": password }),
body: JSON.stringify({ "pass": password }),
})
const data = await response.json();
document.getElementById('text').textContent = JSON.stringify(data, null, 2);