Fix bug in login.js

This commit is contained in:
Preston Doman 2019-02-01 22:29:11 -08:00
parent 04083269ee
commit a838a589c6

View file

@ -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");