Guest User

Untitled

a guest
Sep 22nd, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. signIn() {
  2. const session_url = 'http://127.0.0.1:5000/signin'
  3.  
  4. axios.get(session_url, {}, {
  5. auth: {
  6. username: this.email,
  7. password: this.password
  8. }
  9. }).then(response => {
  10. console.log('Authenticated')
  11. console.log(response.data)
  12. /*this.$store.dispatch('signin', response.data)*/
  13. }).catch(error => {
  14. console.log('Error on Authentication')
  15. this.error = error
  16. console.log(error)
  17. });
  18. }
Add Comment
Please, Sign In to add comment