fix login.js 0.147
This commit is contained in:
@@ -17,9 +17,9 @@ document.getElementById('loginForm').addEventListener('submit', async function (
|
||||
const response = await fetch("https://ru.homyk.space/api/auth", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: new URLSearchParams({
|
||||
body: JSON.stringify({
|
||||
password: userData.password
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user