axios.post('http://localhost:5000/users/login',
{
email: this.email,
password: this.password
}
).then((res) => {
localStorage.setItem('usertoken', res.data)
this.email = ''
this.password = ''
router.push({ name: 'Profile' })
}).catch((err) => {
console.log(err)
})axios.post('http://localhost:5000/users/login',
{
email: this.email,
password: this.password
}
).then((res) => {
localStorage.setItem('usertoken', res.data)
this.email = ''
this.password = ''
router.push({ name: 'Profile' })
}).catch((err) => {
console.log(err)
})