Guest User

Untitled

a guest
Aug 5th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. login : function(){
  2. // POST /someUrl
  3. this.$http.post('controllers/accountController.php', { data:{action : "login", user: this.username, pass:this.password}}).then(response => {
  4.  
  5. // get status
  6. response.status;
  7. response.statusText;
  8. this.someData = response.body;
  9. console.log(response.body);
  10. }, response => {
  11. console.log("error");
  12. });
  13. }
  14.  
  15. }
  16.  
  17. this.$http.post('controllers/accountController.php',
Add Comment
Please, Sign In to add comment