diff --git a/webapp/components/Registration/CreateUserAccount.vue b/webapp/components/Registration/CreateUserAccount.vue index f2f6bf7f4..13cb92a7d 100644 --- a/webapp/components/Registration/CreateUserAccount.vue +++ b/webapp/components/Registration/CreateUserAccount.vue @@ -87,10 +87,24 @@ import gql from 'graphql-tag' import PasswordStrength from '../Password/Strength' import { SweetalertIcon } from 'vue-sweetalert-icons' import PasswordForm from '~/components/utils/PasswordFormHelper' +import { VERSION } from '~/pages/terms-and-conditions' + /* TODO: hier muss die version rein */ export const SignupVerificationMutation = gql` - mutation($nonce: String!, $name: String!, $email: String!, $password: String!) { - SignupVerification(nonce: $nonce, email: $email, name: $name, password: $password) { + mutation( + $nonce: String! + $name: String! + $email: String! + $password: String! + $termsAndConditionsAgreedVersion: String! + ) { + SignupVerification( + nonce: $nonce + email: $email + name: $name + password: $password + termsAndConditionsAgreedVersion: $termsAndConditionsAgreedVersion + ) { id name slug @@ -139,10 +153,11 @@ export default { async submit() { const { name, password, about } = this.formData const { email, nonce } = this + const termsAndConditionsAgreedVersion = VERSION try { await this.$apollo.mutate({ mutation: SignupVerificationMutation, - variables: { name, password, about, email, nonce }, + variables: { name, password, about, email, nonce, termsAndConditionsAgreedVersion }, }) this.success = true setTimeout(() => {