diff --git a/frontend/src/pages/Login.vue b/frontend/src/pages/Login.vue
index 590a56f74..79532cb21 100755
--- a/frontend/src/pages/Login.vue
+++ b/frontend/src/pages/Login.vue
@@ -42,10 +42,6 @@
-
- {{ $t('gdd_per_link.redeem') + ':' }}
- {{ $route.params.code }}
-
@@ -68,7 +64,6 @@ import InputPassword from '@/components/Inputs/InputPassword'
import InputEmail from '@/components/Inputs/InputEmail'
import { login } from '@/graphql/queries'
import { getCommunityInfoMixin } from '@/mixins/getCommunityInfo'
-import { redeemTransactionLink } from '@/graphql/mutations'
export default {
name: 'Login',
@@ -101,16 +96,17 @@ export default {
},
fetchPolicy: 'network-only',
})
- .then((result) => {
+ .then(async (result) => {
const {
data: { login },
} = result
this.$store.dispatch('login', login)
+ await loader.hide()
if (this.$route.params.code) {
- this.redeemLink(this.$route.params.code)
+ this.$router.push(`/redeem/${this.$route.params.code}`)
+ } else {
+ this.$router.push('/overview')
}
- this.$router.push('/overview')
- loader.hide()
})
.catch((error) => {
this.toastError(this.$t('error.no-account'))
@@ -122,21 +118,6 @@ export default {
loader.hide()
})
},
- redeemLink(code) {
- this.$apollo
- .mutate({
- mutation: redeemTransactionLink,
- variables: {
- code: code,
- },
- })
- .then(() => {
- this.toastSuccess(this.$t('gdd_per_link.successfully-redeemed'))
- })
- .catch((err) => {
- this.toastError(err.message)
- })
- },
},
}
diff --git a/frontend/src/pages/Register.vue b/frontend/src/pages/Register.vue
index 9fb3db56e..152c18198 100755
--- a/frontend/src/pages/Register.vue
+++ b/frontend/src/pages/Register.vue
@@ -118,24 +118,6 @@
{{ messageError }}
-
-
-
-
-
-
-
-
-
-
-
-
-