mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-25 14:15:07 +01:00
Add a way to get new captcha on click
This commit is contained in:
parent
3c9c8052f7
commit
ab6f1904fa
@ -31,7 +31,7 @@ const registration = {
|
||||
this.$router.push('/main/all')
|
||||
}
|
||||
|
||||
this.getCaptcha().then(cpt => { this.captcha = cpt })
|
||||
this.setCaptcha()
|
||||
},
|
||||
computed: {
|
||||
token () { return this.$route.params.token },
|
||||
@ -61,6 +61,9 @@ const registration = {
|
||||
console.warn('Registration failed: ' + error)
|
||||
}
|
||||
}
|
||||
},
|
||||
setCaptcha() {
|
||||
this.getCaptcha().then(cpt => { this.captcha = cpt })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,8 +77,9 @@
|
||||
|
||||
<div class="form-group" id="captcha-group" v-if="captcha.type != 'none'">
|
||||
<template v-if="captcha.type == 'kocaptcha'">
|
||||
<img v-bind:src="captcha.url">
|
||||
<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"
|
||||
|
Loading…
Reference in New Issue
Block a user