From 8470856045d2eef0ced9115bfe994a280c88c919 Mon Sep 17 00:00:00 2001 From: Ekaterina Vaartis Date: Fri, 21 Dec 2018 00:25:09 +0300 Subject: [PATCH 1/3] Add encrypted captcha_answer_data for stateless captcha --- src/components/registration/registration.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index 65b2fb9b..dd8e6e5d 100644 --- a/src/components/registration/registration.js +++ b/src/components/registration/registration.js @@ -48,8 +48,10 @@ const registration = { async submit () { this.user.nickname = this.user.username this.user.token = this.token + this.user.captcha_solution = this.captcha.solution this.user.captcha_token = this.captcha.token + this.user.captcha_answer_data = this.captcha.answer_data this.$v.$touch() From 661efc51b79012c48cfb63748e0adb4b71f4517b Mon Sep 17 00:00:00 2001 From: Ekaterina Vaartis Date: Fri, 21 Dec 2018 00:25:36 +0300 Subject: [PATCH 2/3] Small UI improvements for the CAPTCHA field --- src/components/registration/registration.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue index f187e215..785d691a 100644 --- a/src/components/registration/registration.vue +++ b/src/components/registration/registration.vue @@ -76,15 +76,16 @@
+ +
From 10642df528ab0119055224e289f39ecd48e49dbd Mon Sep 17 00:00:00 2001 From: Ekaterina Vaartis Date: Fri, 21 Dec 2018 09:53:04 +0300 Subject: [PATCH 3/3] Add a translation to the captcha strings in the registration form --- src/components/registration/registration.vue | 4 ++-- src/i18n/en.json | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue index 785d691a..1455354e 100644 --- a/src/components/registration/registration.vue +++ b/src/components/registration/registration.vue @@ -76,12 +76,12 @@
- +