Fix bug in login.js
This commit is contained in:
parent
04083269ee
commit
a838a589c6
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ function postToLoginEndpoint(event) {
|
|||
const url = "https://reqres.in/api/login" // mock api service
|
||||
const xhr = new XMLHttpRequest();
|
||||
|
||||
console.log("User credentials:\n" + JSON.stringify(credentials)");
|
||||
console.log("User credentials:\n" + JSON.stringify(credentials));
|
||||
|
||||
xhr.open("POST", url, true);
|
||||
xhr.setRequestHeader("Content-Type", "application/json");
|
||||
|
|
Loading…
Reference in a new issue