diff options
Diffstat (limited to 'src/views/Login/Login.vue')
-rw-r--r-- | src/views/Login/Login.vue | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue index 96b4c9e8..db475c56 100644 --- a/src/views/Login/Login.vue +++ b/src/views/Login/Login.vue @@ -124,15 +124,12 @@ export default { this.$store.commit('global/setLanguagePreference', i18n.locale); return this.$store.dispatch('authentication/getUserInfo', username); }) - .then(({ PasswordChangeRequired, RoleId }) => { + .then(({ PasswordChangeRequired }) => { if (PasswordChangeRequired) { this.$router.push('/change-password'); } else { this.$router.push('/'); } - if (RoleId) { - this.$store.commit('global/setPrivilege', RoleId); - } }) .catch((error) => console.log(error)) .finally(() => (this.disableSubmitButton = false)); |