diff --git a/resources/assets/js/store/modules/auth/actions.js b/resources/assets/js/store/modules/auth/actions.js index f92ba4f0..05bc5d86 100644 --- a/resources/assets/js/store/modules/auth/actions.js +++ b/resources/assets/js/store/modules/auth/actions.js @@ -21,13 +21,6 @@ export const login = ({ commit, dispatch, state }, data) => { window.toastr['success']('Login Successful') resolve(response) }).catch(err => { - if (err.response.data.error === 'invalid_credentials') { - window.toastr['error']('Invalid Credentials') - } else { - // Something happened in setting up the request that triggered an Error - console.log('Error', err.message) - } - commit(types.AUTH_ERROR, err.response) Ls.remove('auth.token') reject(err)