Skip to content

Commit

Permalink
Fixed www.google.com in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
karser authored Sep 11, 2021
1 parent 24c216a commit 5e44481
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ RECAPTCHA3_SECRET=my_secret
Usage
-----

### How to use reCAPTCHA globally (meaning even in China):

Use `'www.recaptcha.net'` host in your code when `'www.google.com'` is not accessible.

```yaml
# config/packages/karser_recaptcha3.yaml (or app/config/config.yml if using Symfony3)

karser_recaptcha3:
host: 'www.recaptcha.net' # default is 'google.com'
```
### How to integrate re-captcha in Symfony form:

```php
Expand All @@ -111,6 +100,17 @@ Notes:
- The `action_name` parameter is [reCAPTCHA v3 action](https://developers.google.com/recaptcha/docs/v3#actions) which identifies the submission of this particular form in the Google reCAPTCHA dashboard, and confirming it is as expected in the backend is a recommended extra security step.
- The `script_nonce_csp` parameter is optional. You must use the same nonce as in your Content-Security Policy header.

### How to use reCAPTCHA globally (meaning even in China):

Use `'www.recaptcha.net'` host in your code when `'www.google.com'` is not accessible.

```yaml
# config/packages/karser_recaptcha3.yaml (or app/config/config.yml if using Symfony3)

karser_recaptcha3:
host: 'www.recaptcha.net' # default is 'www.google.com'
```
### How can I set the captcha language for different locales?
You should install the [Symfony Translation component](https://symfony.com/doc/current/translation.html).
Expand Down

0 comments on commit 5e44481

Please sign in to comment.