test1
This commit is contained in:
parent
6bb11167f1
commit
cb720061cf
@ -82,8 +82,11 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
login() {
|
||||
if (this.usuario && this.password && !this.error) {
|
||||
async login() {
|
||||
const token = await this.$recaptcha.getResponse()
|
||||
console.log('ReCaptcha token:', token)
|
||||
|
||||
if (this.usuario && this.password && !this.error && !token) {
|
||||
const data = {
|
||||
operador: this.usuario,
|
||||
password: this.password,
|
||||
@ -172,6 +175,9 @@ export default {
|
||||
created() {
|
||||
this.obtenerCatalogoInstitucion()
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.$recaptcha.destroy()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user