i am searching for login & register strategies and i found this video
https://www.youtube.com/watch?v=vRyayu8KEIw
its looks good but when i try on me its redirect whole page to error like this
when i change code on plugins/axios.js from
$axios.onError(error => {
if (error.response.status == 422) {
store.dispatch('validation/setErrors', error.response.data.errors);
}
return Promise.reject(error);
})
to
$axios.onError(error => {
if (error.response.status == 422) {
store.dispatch('validation/setErrors', error.response.data.errors);
}
return Promise.reject(error.response);
})
getting error like this
still redirecting to error page help me thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire