let data = {
'email': this.email,
'password': this.password
};
axios({
data: data,
method: "post",
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
},
url: '/api/user/login/'
}).then(response => {
console.log(response.data);
}).catch(response => {
console.log(response);
});
var data = new URLSearchParams();
data.append('email', email);
data.append('password', password);
"email=" + encodeURIComponent(email) + "&password=" + encodeURIComponent(password)