Removed unnecessary notification

Removed unnecessary notification as the improved error handler will show it
This commit is contained in:
MakerLab
2020-01-30 20:45:39 +01:00
committed by GitHub
parent f6f66b3ae6
commit 4bb4362d23

View File

@ -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)