Please help me
[Please pardon me for my bad English]
I am trying to login as customer with vue and without page reload or redirect.
When I submit form I got 200 and 302 response. but can’t login.
I have included my code here :
let productForm = new Vue({
el:".vue-login-form",
data(){
return{
form: {
email: null,
password: null,
},
customerData: null,
}
},
methods:{
login(){
axios.post('/account/login', this.form )
.then((response) => {
console.log(response);
this.customerData = response.data;
})
.catch(function (error){
});
},
},
})