diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/_store.js b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/_store.js index 3b0b6ee4..1a795f8c 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/_store.js +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/_store.js @@ -45,8 +45,7 @@ export default new Vuex.Store({ sessionStorage.setItem('token', response.data.token); commit('loginSuccess'); commit('loading', false); - return response.data.token; - }, (error) => { + }).catch((error) => { commit('loginFailure'); commit('loading', false); throw error; @@ -61,7 +60,6 @@ export default new Vuex.Store({ }).then(() => { sessionStorage.removeItem('token'); commit('logout'); - return true; }); }, loadCountries ({ commit }) { @@ -69,7 +67,6 @@ export default new Vuex.Store({ url: '/api/countries', }).then((response) => { commit('setCountries', response.data); - return response.data; }) } }, diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/Login.vue b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/Login.vue index 52eac893..652b9887 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/Login.vue +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/components/Login.vue @@ -46,9 +46,8 @@ this.$store.dispatch('login', { email: this.email, password: this.password - }).then((token) => { + }).then(() => { this.$router.push({ name: 'address' }); - return token; }).catch(() => { this.message = 'Der Login ist fehlgeschlagen :('; }).then(() => {