diff --git a/webapp/components/Registration/CreateUserAccount.spec.js b/webapp/components/Registration/CreateUserAccount.spec.js
index e3f7503a3..51177ad6f 100644
--- a/webapp/components/Registration/CreateUserAccount.spec.js
+++ b/webapp/components/Registration/CreateUserAccount.spec.js
@@ -56,6 +56,7 @@ describe('CreateUserAccount', () => {
wrapper.find('input#name').setValue('John Doe')
wrapper.find('input#password').setValue('hellopassword')
wrapper.find('input#passwordConfirmation').setValue('hellopassword')
+ wrapper.find('input#checkbox').simulate('change')
await wrapper.find('form').trigger('submit')
await wrapper.html()
}
diff --git a/webapp/components/Registration/CreateUserAccount.vue b/webapp/components/Registration/CreateUserAccount.vue
index 50bdd78e3..37a1639d9 100644
--- a/webapp/components/Registration/CreateUserAccount.vue
+++ b/webapp/components/Registration/CreateUserAccount.vue
@@ -46,11 +46,15 @@
:label="$t('settings.security.change-password.label-new-password-confirm')"
/>
+
+
+
+
+
+
-
- {{ backendErrors.message }}
-
+ {{ backendErrors.message }} {
- this.$emit('userCreated', {
- email,
- password,
+ if (this.checkedDefault) {
+ const { name, password, about } = this.formData
+ const { email, nonce } = this
+ try {
+ await this.$apollo.mutate({
+ mutation: SignupVerificationMutation,
+ variables: { name, password, about, email, nonce },
})
- }, 3000)
- } catch (err) {
- this.backendErrors = err
+ this.success = true
+ setTimeout(() => {
+ this.$emit('userCreated', {
+ email,
+ password,
+ })
+ }, 3000)
+ } catch (err) {
+ this.backendErrors = err
+ }
+ } else {
+ this.backendErrors = { message: this.$t(`site.termsAndConditionsNoChecked`) }
}
},
},
diff --git a/webapp/locales/de.json b/webapp/locales/de.json
index f94ea693c..d9b551477 100644
--- a/webapp/locales/de.json
+++ b/webapp/locales/de.json
@@ -22,7 +22,9 @@
"responsible": "Verantwortlicher gemäß § 55 Abs. 2 RStV ",
"bank": "Bankverbindung",
"germany": "Deutschland",
- "code-of-conduct": "Verhaltenscodex"
+ "code-of-conduct": "Verhaltenscodex",
+ "termsAndConditionsCeckbox": "Nutzungsbedingungen gelesen und verstanden",
+ "termsAndConditionsNoChecked": "Bitte lies und bestätige die Nutzungsbednigungen!"
},
"sorting": {
"newest": "Neuste",
@@ -459,7 +461,6 @@
"title": "Zweck",
"description": "Mit diesen Verhaltensregeln regeln wir die wesentlichen Grundsätze für das Verhalten in unserem Sozialen Netzwerk. Dabei ist die Menschenrechtscharta der Vereinten Nationen unsere Orientierung und bildet das Herz unseres Werteverständnisses. Die Verhaltensregeln dienen als Leitsätze für den persönlichen Auftritt und den Umgang untereinander. Wer als Nutzer im Human Connection Netzwerk aktiv ist, Beiträge verfasst, kommentiert oder mit anderen Nutzern, auch außerhalb des Netzwerkes, Kontakt aufnimmt, erkennt diese Verhaltensregeln als verbindlich an."
},
-
"expected-behaviour": {
"title": "Erwartetes Verhalten",
"description": "Die folgenden Verhaltensweisen werden von allen Community-Mitgliedern erwartet und gefordert:",
@@ -527,14 +528,14 @@
"description": "Sollte Dir die Alphaversion unseres Netzwerks wider Erwarten, egal aus welchen Gründen, nicht gefallen, überweisen wir Dir Deine gespendeten Monatsbeiträge innerhalb der ersten 2 Monate gerne zurück. Einfach Mail an: info@human-connection.org Achtung: Viele Funktionen werden erst nach und nach eingebaut."
},
"questions": {
- "title": "Fragen",
- "description": "Die Termine und Links zu den Zoom-Räumen findest Du hier: https://human-connection.org/veranstaltungen/ "
+ "title": "Fragen",
+ "description": "Die Termine und Links zu den Zoom-Räumen findest Du hier: https://human-connection.org/veranstaltungen/ "
},
"human-connection": {
- "title": "Von Menschen für Menschen:",
- "description": "Bitte hilf uns weitere monatlichen Spender für Human Connection zu bekommen, damit das Netzwerk so schnell wie möglich offiziell an den Start gehen kann. https://human-connection.org "
+ "title": "Von Menschen für Menschen:",
+ "description": "Bitte hilf uns weitere monatlichen Spender für Human Connection zu bekommen, damit das Netzwerk so schnell wie möglich offiziell an den Start gehen kann. https://human-connection.org "
},
"have-fun": "Jetzt aber viel Spaß mit der Alpha von Human Connection! Für den ersten Weltfrieden. ♥︎",
"closing": "Herzlichst
Euer Human Connection Team"
}
-}
+}
\ No newline at end of file
diff --git a/webapp/locales/en.json b/webapp/locales/en.json
index c073f312a..1930be537 100644
--- a/webapp/locales/en.json
+++ b/webapp/locales/en.json
@@ -22,7 +22,9 @@
"responsible": "responsible for contents of this page (§ 55 Abs. 2 RStV)",
"bank": "bank account",
"germany": "Germany",
- "code-of-conduct": "Code of Conduct"
+ "code-of-conduct": "Code of Conduct",
+ "termsAndConditionsCeckbox": "Terms and conditions read and understood",
+ "termsAndConditionsNoChecked": "Please read and confirm the Terms and conditions!"
},
"sorting": {
"newest": "Newest",
@@ -536,4 +538,4 @@
"have-fun": "Now have fun with the alpha version of Human Connection! For the first universal peace. ♥︎",
"closing": "Thank you very much
your Human Connection Team"
}
-}
+}
\ No newline at end of file