V
V
Viktor2016-01-30 12:59:58
CAPTCHA
Viktor, 2016-01-30 12:59:58

Has anyone already implemented nocaptcha from mail.ru?

In the documentation for their captcha, there is not a single example of how captcha works on a live site. Share a link to a working example with this captcha.
I'm having trouble passing the publicKey to their JavaScript widget correctly.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
man0xff, 2016-02-01
@Levhav

The options for an AJAX-enabled widget are set as follows:

<script type="text/javascript">
    var nocaptchaOptions = {
        publicKey: 'PUBLIC_KEY'
    };
</script>
<script src="https://api-nocaptcha.mail.ru/nocaptcha.js" type="text/javascript"></script>

Unlike the old widget, there is no need to pass the public key in the URL (src=".../nocaptcha.js?public_key=7823fa..."). The public key is taken from the nocaptchaOptions structure, which must be created before nocaptcha.js is included.

M
Max, 2016-01-30
@AloneCoder

There are examples in the nocaptcha repository
What exactly doesn't work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question