login refactor

This commit is contained in:
Jay_Makwana
2019-11-19 20:36:21 +05:30
parent 3a5fa43ef4
commit 7d7f4fba73

View File

@ -75,3 +75,8 @@ export const logout = ({ commit, dispatch, state }, noRequest = false) => {
})
})
}
export const loginOnBoardingUser = ({ commit, dispatch, state }, token) => {
commit(types.AUTH_SUCCESS, token)
window.toastr['success']('Login Successful')
}