Jump to content

Using Yandex Captcha


artem_niko

Recommended Posts

Good evening!
I'm looking here and thinking about whether it makes sense to use Yandex Captcha.
I use the instructions: https://cloud .yandex.ru/docs/smartcaptcha/quickstart#add-widget

I did everything as it is written there, but I got to the point of adding a widget and stupor.

What should I use? Uni HTML Frame?
Where to put the script connection: 

<script src="https://captcha-api.yandex.ru/captcha.js" defer></script>

At the moment I have no error occurs, but the widget is not displayed either:

image.png.dcc8a15493881f3c1d1f801742cb621e.png

The widget is located on UniLoginForm.

Link to comment
Share on other sites

5 minutes ago, Sherzod said:

Try adding the script directly to the HTMLFrame.

Like this?

<script src="https://captcha-api.yandex.ru/captcha.js" defer></script>
<div
    id="captcha-container"
    class="smart-captcha"
    data-sitekey="cdsfdsfsdfsdfsdfsdfsdfsdfsy0JsvFRzTyZZ"
></div>

As result:

image.png.f4457aa86321afaaf224364003192092.png

Link to comment
Share on other sites

10 minutes ago, Sherzod said:

Думаю, да. Я не смотрел документацию, но мне кажется Вы должны указать конкретный домен. 

Возможно...

У меня есть домен, но нет пока сервера, на котором бы я расположил свой проект, т.е. Яндекс не может, скорее всего, достучаться до моего компа на локалхост

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...