Guest User

Untitled

a guest
Jan 13th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. window.fetch('url here',{
  2. method: 'POST',
  3. headers: {
  4. "Content-Type": "application/json",
  5. },
  6. body: JSON.stringify({
  7. model: {
  8. ActionUrl: "",
  9. DisplayLinkEmail: false,
  10. Password: this.state.password,
  11. RememberMe: false,
  12. UserName: this.state.username,
  13. reCaptchaResponse: ""
  14. },
  15. returnUrl: ""
  16. })
  17. }).then((response)=>{
  18. console.log(response);
  19. return response.json();
  20. }).then((data)=>{
  21. console.log(data);
  22. });
Add Comment
Please, Sign In to add comment