aboutsummaryrefslogtreecommitdiff
path: root/src/components/registration/registration.vue
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2018-12-17 13:36:56 +0000
committerShpuld Shpludson <shp@cock.li>2018-12-17 13:36:56 +0000
commitb124dbf44e71a74a05b1994cc06480c63db2e290 (patch)
tree4ce3e8fe2e925730bd913a2589a54c4f99f5838c /src/components/registration/registration.vue
parentada4bd0d9874d98213cf79ccd9f7cddda36d1b6c (diff)
parentd2984b9bc50a2565e8e83eaff36ce44239062e41 (diff)
Merge branch 'captcha' into 'develop'
Captcha See merge request pleroma/pleroma-fe!424
Diffstat (limited to 'src/components/registration/registration.vue')
-rw-r--r--src/components/registration/registration.vue13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue
index 8cb1392b..f187e215 100644
--- a/src/components/registration/registration.vue
+++ b/src/components/registration/registration.vue
@@ -75,6 +75,19 @@
</ul>
</div>
+ <div class="form-group" id="captcha-group" v-if="captcha.type != 'none'">
+ <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'>
+ </template>
+ </div>
+
<div class='form-group' v-if='token' >
<label for='token'>{{$t('registration.token')}}</label>
<input disabled='true' v-model='token' class='form-control' id='token' type='text'>