From 661efc51b79012c48cfb63748e0adb4b71f4517b Mon Sep 17 00:00:00 2001
From: Ekaterina Vaartis <vaartis@cock.li>
Date: Fri, 21 Dec 2018 00:25:36 +0300
Subject: Small UI improvements for the CAPTCHA field

---
 src/components/registration/registration.vue | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/components/registration/registration.vue')

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 @@
             </div>
 
             <div class="form-group" id="captcha-group" v-if="captcha.type != 'none'">
+              <label class='form--label' for='captcha-label'>CAPTCHA</label>
+
               <template v-if="captcha.type == 'kocaptcha'">
                 <img v-bind:src="captcha.url" v-on:click="setCaptcha">
 
                 <sub>Click the image to get a new captcha</sub>
-                <label class='form--label' for='captcha-label'>CAPTCHA</label>
 
                 <input :disabled="isPending"
                   v-model='captcha.solution'
-                  class='form-control' id='captcha-answer' type='text'>
+                  class='form-control' id='captcha-answer' type='text' autocomplete="off">
               </template>
             </div>
 
-- 
cgit v1.2.3-70-g09d2


From 10642df528ab0119055224e289f39ecd48e49dbd Mon Sep 17 00:00:00 2001
From: Ekaterina Vaartis <vaartis@cock.li>
Date: Fri, 21 Dec 2018 09:53:04 +0300
Subject: 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(-)

(limited to 'src/components/registration/registration.vue')

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 @@
             </div>
 
             <div class="form-group" id="captcha-group" v-if="captcha.type != 'none'">
-              <label class='form--label' for='captcha-label'>CAPTCHA</label>
+              <label class='form--label' for='captcha-label'>$t('captcha')</label>
 
               <template v-if="captcha.type == 'kocaptcha'">
                 <img v-bind:src="captcha.url" v-on:click="setCaptcha">
 
-                <sub>Click the image to get a new captcha</sub>
+                <sub>{{$t('registration.new_captcha')}}</sub>
 
                 <input :disabled="isPending"
                   v-model='captcha.solution'
diff --git a/src/i18n/en.json b/src/i18n/en.json
index f445bfc2..3662c6f6 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -74,6 +74,8 @@
     "password_confirm": "Password confirmation",
     "registration": "Registration",
     "token": "Invite token",
+    "captcha": "CAPTCHA",
+    "new_captcha": "Click the image to get a new captcha",
     "validations": {
       "username_required": "cannot be left blank",
       "fullname_required": "cannot be left blank",
-- 
cgit v1.2.3-70-g09d2

