refactor login

This commit is contained in:
Jay_Makwana
2019-11-19 20:38:38 +05:30
parent 7d7f4fba73
commit 98579040cc
2 changed files with 1 additions and 1 deletions

View File

@ -78,5 +78,4 @@ 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')
}

View File

@ -206,6 +206,7 @@ export default {
this.loading = false
Ls.set('auth.token', response.data.token)
this.loginOnBoardingUser(response.data.token)
window.toastr['success']('Login Successful')
this.$router.push('/admin/dashboard')
}
}