summaryrefslogtreecommitdiff
path: root/src/views/Login/Login.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/Login/Login.vue')
-rw-r--r--src/views/Login/Login.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue
index 4d8f2484..3993800c 100644
--- a/src/views/Login/Login.vue
+++ b/src/views/Login/Login.vue
@@ -138,6 +138,8 @@ export default {
.then(() => this.$router.push('/'))
.then(() => {
localStorage.setItem('storedLanguage', i18n.locale);
+ localStorage.setItem('storedUsername', username);
+ this.$store.commit('global/setUsername', username);
this.$store.commit('global/setLanguagePreference', i18n.locale);
})
.catch(error => console.log(error))