Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- signIn() {
- const session_url = 'http://127.0.0.1:5000/signin'
- axios.get(session_url, {}, {
- auth: {
- username: this.email,
- password: this.password
- }
- }).then(response => {
- console.log('Authenticated')
- console.log(response.data)
- /*this.$store.dispatch('signin', response.data)*/
- }).catch(error => {
- console.log('Error on Authentication')
- this.error = error
- console.log(error)
- });
- }
Add Comment
Please, Sign In to add comment