diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index b840fc34b..84236f71d 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -84,9 +84,7 @@ }, "thx": { "title": "Danke!", - "email": "Wir haben dir eine eMail gesendet.", - "reset": "Dein Passwort wurde geändert", - "register": "Du bist jetzt regisriert" + "subtitle": "Wir haben dir eine eMail gesendet." }, "overview":{ "account_overview":"Kontoübersicht", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 4a7a8b09f..9a4a42314 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -84,9 +84,7 @@ }, "thx": { "title": "Thank you!", - "email": "We have sent you an email.", - "reset": "Your password has been changed", - "register": "You are registred now" + "subtitle": "We have sent you an email." }, "overview":{ "account_overview":"Account overview", diff --git a/frontend/src/routes/routes.js b/frontend/src/routes/routes.js index 0021aa1ed..e9bcf38c8 100755 --- a/frontend/src/routes/routes.js +++ b/frontend/src/routes/routes.js @@ -49,14 +49,6 @@ const routes = [ { path: '/thx', component: () => import('../views/Pages/thx.vue'), - beforeEnter: (to, from, next) => { - const validFrom = ['/password', '/reset', '/register'] - if (!validFrom.includes(from.path)) { - next({ path: '/login' }) - } else { - next() - } - }, }, { path: '/password', diff --git a/frontend/src/views/Pages/ResetPassword.vue b/frontend/src/views/Pages/ResetPassword.vue index c24a33257..de5f256d6 100644 --- a/frontend/src/views/Pages/ResetPassword.vue +++ b/frontend/src/views/Pages/ResetPassword.vue @@ -107,10 +107,6 @@ export default { const result = await loginAPI.changePassword(this.sessionId, this.email, this.password) if (result.success) { this.password = '' - this.$store.dispatch('login', { - sessionId: result.result.data.session_id, - email: result.result.data.user.email, - }) this.$router.push('/thx') } else { alert(result.result.message) diff --git a/frontend/src/views/Pages/thx.vue b/frontend/src/views/Pages/thx.vue index 53db302a9..db0b967d6 100644 --- a/frontend/src/views/Pages/thx.vue +++ b/frontend/src/views/Pages/thx.vue @@ -5,54 +5,12 @@ {{ $t('site.thx.title') }} - {{ $t(displaySetup.subtitle) }} + {{ $t('site.thx.subtitle') }} - {{ $t(displaySetup.button) }} + {{ $t('login') }} -
{{ $t('site.thx.title') }}
{{ $t(displaySetup.subtitle) }}
{{ $t('site.thx.subtitle') }}