From 4bb4362d236254810af088e864d03ddbeb516363 Mon Sep 17 00:00:00 2001 From: MakerLab <47223013+MakerLab-Dev@users.noreply.github.com> Date: Thu, 30 Jan 2020 20:45:39 +0100 Subject: [PATCH] Removed unnecessary notification Removed unnecessary notification as the improved error handler will show it --- resources/assets/js/store/modules/auth/actions.js | 7 ------- 1 file changed, 7 deletions(-) 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)