Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function try_login(username, password)
- {
- var new_headers = new Headers();
- new_headers.append('Content-Type', 'application/x-www-form-urlencoded');
- username = encodeURIComponent(username);
- password = encodeURIComponent(password);
- return fetch('', {method: 'POST', headers: new_headers, body:`login_email=${username}&login_pass=${password}&login=Login`})
- .then(x => x.text());
- }
Add Comment
Please, Sign In to add comment