From 855caf78e9090b985c9d224a47802802243f271f Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 15 Oct 2019 13:05:51 +0200 Subject: [PATCH 1/3] reference to terms of use, data protection, minimum age at added --- webapp/components/Registration/Signup.vue | 10 ++++++++++ webapp/locales/de.json | 3 +++ webapp/locales/en.json | 3 +++ 3 files changed, 16 insertions(+) diff --git a/webapp/components/Registration/Signup.vue b/webapp/components/Registration/Signup.vue index 00309b1c6..cbed5b9f8 100644 --- a/webapp/components/Registration/Signup.vue +++ b/webapp/components/Registration/Signup.vue @@ -30,6 +30,16 @@ name="email" icon="envelope" /> + + + + + + + + {{ $t('components.registration.signup.form.minimum-age') }} + + Nutzungsbedingungen!", + "data-privacy": "Es gelten unsere Datenschutzerklärungen!", + "minimum-age": "Du musst das 18 Lebensjahr abgeschlossen haben!", "invitation-code": "Dein Einladungscode lautet: {code}", "errors": { "email-exists": "Es gibt schon ein Benutzerkonto mit dieser E-Mail Adresse!", diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 90bb84c37..a22f7a4a4 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -31,6 +31,9 @@ "title": "Join Human Connection!", "form": { "description": "To get started, enter your email address:", + "terms-and-condition": "Our terms of conditions! apply!", + "data-privacy": "Our Data privacy apply!", + "minimum-age": "You must be at least 18 years old!", "invitation-code": "Your invitation code is: {code}", "errors": { "email-exists": "There is already a user account with this email address!", From 461defd4606dd2f4a68c0133e1dd528c164f09a5 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 15 Oct 2019 15:43:31 +0200 Subject: [PATCH 2/3] WITH CHECKBOXES --- webapp/components/Registration/Signup.vue | 36 ++++++++++++++++------- webapp/locales/de.json | 6 ++-- webapp/locales/en.json | 6 ++-- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/webapp/components/Registration/Signup.vue b/webapp/components/Registration/Signup.vue index cbed5b9f8..18750b300 100644 --- a/webapp/components/Registration/Signup.vue +++ b/webapp/components/Registration/Signup.vue @@ -30,15 +30,24 @@ name="email" icon="envelope" /> - - - - - - - - {{ $t('components.registration.signup.form.minimum-age') }} - +

+ +

+

+ +

+

+ +

Nutzungsbedingungen!", - "data-privacy": "Es gelten unsere Datenschutzerklärungen!", - "minimum-age": "Du musst das 18 Lebensjahr abgeschlossen haben!", + "terms-and-condition": "Ich stimme den Nutzungsbedingungen!zu.", + "data-privacy": "Ich habe die Datenschutzerklärungen! gelesen und verstanden", + "minimum-age": "Ich bin 18 Jahre oder älter.", "invitation-code": "Dein Einladungscode lautet: {code}", "errors": { "email-exists": "Es gibt schon ein Benutzerkonto mit dieser E-Mail Adresse!", diff --git a/webapp/locales/en.json b/webapp/locales/en.json index a22f7a4a4..a97a84a73 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -31,9 +31,9 @@ "title": "Join Human Connection!", "form": { "description": "To get started, enter your email address:", - "terms-and-condition": "Our terms of conditions! apply!", - "data-privacy": "Our Data privacy apply!", - "minimum-age": "You must be at least 18 years old!", + "terms-and-condition": "I confirm to the Terms and conditions.", + "data-privacy": " I have read and understood the Privacy Statement ", + "minimum-age": "I'm 18 years or older.", "invitation-code": "Your invitation code is: {code}", "errors": { "email-exists": "There is already a user account with this email address!", From d7dc0646e002263920b2feadfe638052ae7074a2 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 15 Oct 2019 19:21:05 +0200 Subject: [PATCH 3/3] Confirm, privacy policy, minimum age at registration --- .../Registration/CreateUserAccount.spec.js | 4 ++- .../Registration/CreateUserAccount.vue | 18 ++++++++++-- webapp/components/Registration/Signup.vue | 28 +------------------ webapp/locales/de.json | 2 +- 4 files changed, 21 insertions(+), 31 deletions(-) diff --git a/webapp/components/Registration/CreateUserAccount.spec.js b/webapp/components/Registration/CreateUserAccount.spec.js index 67a14b3c5..3bea5a975 100644 --- a/webapp/components/Registration/CreateUserAccount.spec.js +++ b/webapp/components/Registration/CreateUserAccount.spec.js @@ -61,7 +61,9 @@ describe('CreateUserAccount', () => { wrapper.find('input#password').setValue('hellopassword') wrapper.find('textarea#about').setValue('Hello I am the `about` attribute') wrapper.find('input#passwordConfirmation').setValue('hellopassword') - wrapper.find('input#checkbox').setChecked() + wrapper.find('input#checkbox0').setChecked() + wrapper.find('input#checkbox1').setChecked() + wrapper.find('input#checkbox2').setChecked() await wrapper.find('form').trigger('submit') await wrapper.html() } diff --git a/webapp/components/Registration/CreateUserAccount.vue b/webapp/components/Registration/CreateUserAccount.vue index be01e0bb0..7fc64a545 100644 --- a/webapp/components/Registration/CreateUserAccount.vue +++ b/webapp/components/Registration/CreateUserAccount.vue @@ -64,7 +64,7 @@ +

+ +

+

+ +

{{ $t('actions.save') }} @@ -129,6 +141,8 @@ export default { // Integrate termsAndConditionsConfirmed into `this.formData` once we // have checkmarks available. termsAndConditionsConfirmed: false, + dataPrivacy: false, + minimumAge: false, } }, props: { diff --git a/webapp/components/Registration/Signup.vue b/webapp/components/Registration/Signup.vue index 18750b300..00309b1c6 100644 --- a/webapp/components/Registration/Signup.vue +++ b/webapp/components/Registration/Signup.vue @@ -30,25 +30,6 @@ name="email" icon="envelope" /> -

- -

-

- -

-

- -

- Nutzungsbedingungen!zu.", + "terms-and-condition": "Ich stimme den Nutzungsbedingungenzu.", "data-privacy": "Ich habe die Datenschutzerklärungen! gelesen und verstanden", "minimum-age": "Ich bin 18 Jahre oder älter.", "invitation-code": "Dein Einladungscode lautet: {code}",