From ab6f1904fae8fad7e4a5de89d6d613285283f28e Mon Sep 17 00:00:00 2001 From: Ekaterina Vaartis Date: Sun, 16 Dec 2018 22:47:52 +0300 Subject: Add a way to get new captcha on click --- src/components/registration/registration.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/components/registration/registration.js') diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index 0c65ac5d..6b79469c 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 }) } } } -- cgit v1.2.3-70-g09d2