From 98579040cc360495252578c1be056407909b1b16 Mon Sep 17 00:00:00 2001 From: Jay_Makwana Date: Tue, 19 Nov 2019 20:38:38 +0530 Subject: [PATCH] refactor login --- resources/assets/js/store/modules/auth/actions.js | 1 - resources/assets/js/views/wizard/Settings.vue | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/store/modules/auth/actions.js b/resources/assets/js/store/modules/auth/actions.js index 44e25447..f92ba4f0 100644 --- a/resources/assets/js/store/modules/auth/actions.js +++ b/resources/assets/js/store/modules/auth/actions.js @@ -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') } diff --git a/resources/assets/js/views/wizard/Settings.vue b/resources/assets/js/views/wizard/Settings.vue index dbefcd67..346e020f 100644 --- a/resources/assets/js/views/wizard/Settings.vue +++ b/resources/assets/js/views/wizard/Settings.vue @@ -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') } }