Ir para o conteúdo

How to integrate AWS WAF Captcha in vuejs?

0

I'm trying to integrate aws captcha to my login screen.

the captcha renders, user completes puzzle and verify api is called successfully.

but how do I get the success status after puzzle completed

AwsWafCaptcha.renderCaptcha(container, {
      apiKey: "ApiKeyHere",
      onSuccess: captchaExampleSuccessFunction,
      onError: captchaExampleErrorFunction
    });



captchaExampleSuccessFunction(wafToken) {
        window.AwsWafIntegration.fetch(this.captchaVerifiedFn());
    },

I need to call captchaVerifiedFn() after user completes puzzle.

Any help would be appreciated.I need to call captchaVerifiedFn() after user completes puzzle.

Any help would be appreciated.

feita há 2 anos957 visualizações
1 Resposta
0
ESPECIALISTA
respondido há 2 anos
  • Hi Didier, thanks for the response, I've implemented same as in the first link, but this "onSuccess: captchaExampleSuccessFunction" is only executing after rendering the captcha not after solving the puzzle.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.