From d1830f5bedfcf7e832e7c94fe8d9c68118176929 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 8 Aug 2019 17:46:04 +0200 Subject: [PATCH] add ceckbox, confirmed terms of use --- .../Registration/CreateUserAccount.spec.js | 1 + .../Registration/CreateUserAccount.vue | 49 ++++++++++++------- webapp/locales/de.json | 15 +++--- webapp/locales/en.json | 6 ++- 4 files changed, 43 insertions(+), 28 deletions(-) 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')" /> + + + + + +