Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function checkLogin(userName,password){
- console.log("ide");
- console.log(userName);
- console.log(password);
- let cim = 'http://localhost:3000/users?username=' + userName + '&password=' + password;
- console.log(cim);
- ponse = await fetch('http://localhost:3000/users?username=asd&password=123', {
- method: 'GET'
- });
- console.log("valasz1");
- console.log(response);
- return response.json();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement