Add a way to get new captcha on click
This commit is contained in:
parent
3c9c8052f7
commit
ab6f1904fa
2 changed files with 6 additions and 2 deletions
|
@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue