diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index 0c65ac5d83..6b79469c28 100644 --- a/src/components/registration/registration.js +++ b/src/components/registration/registration.js @@ -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 }) } } } diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue index be0084ddbc..f187e215d9 100644 --- a/src/components/registration/registration.vue +++ b/src/components/registration/registration.vue @@ -77,8 +77,9 @@