跳到主内容

reCAPTCHA

reCAPTCHA is provided by Google, and we use reCAPTCHA v2 Checkbox. You can find more details about it at this link.

创建一个 API 密钥对

要开始使用 reCAPTCHA,您需要 注册您的站点的 API 密钥对。 配对的密钥由一个站点密钥组成。 The site key is used to invoke the reCAPTCHA service on your site or mobile application. 密钥授权您的应用程序后端和 reCAPTCHA 服务器之间的通信来 验证用户的回应

First, choose the type of reCAPTCHA and then fill in the authorized domains or package names. After you have accepted the terms of service, click Register to obtain a new API key pair.

reCAPTCHA create apiKey

You will then receive a site key and a secret key.

reCAPTCHA apiKey

在 Casdoor 配置

在 Casdoor 中创建一个新的提供商。

Select the category as Captcha and the type as reCAPTCHA. You need to provide the site key and secret key created in the previous step.

reCAPTCHA provider

You can click the Preview button to see the style of this captcha.

reCAPTCHA preview

Apply in the application

编辑您想要在 Cassdoor 中配置的应用程序。 Select the provider you just added and click the Save button.

reCAPTCHA provider app