Skip to content

Commit

Permalink
Merge pull request #432 from NARKOZ/NARKOZ-patch-1
Browse files Browse the repository at this point in the history
Improve documentation for action names per official documentation
  • Loading branch information
grosser authored Aug 21, 2023
2 parents 1f18bd5 + 100b46b commit b4e956a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ but only accepts the following options:
| Option | Description |
|---------------------|-------------|
| `:site_key` | Override site API key |
| `:action` | The name of the [reCAPTCHA action](https://developers.google.com/recaptcha/docs/v3#actions). Actions may only contain alphanumeric characters and slashes, and must not be user-specific. |
| `:action` | The name of the [reCAPTCHA action](https://developers.google.com/recaptcha/docs/v3#actions). Actions are not case-sensitive and may only contain alphanumeric characters, slashes, and underscores, and must not be user-specific. |
| `:nonce` | Optional. Sets nonce attribute for script. Can be generated via `SecureRandom.base64(32)`. (default: `nil`) |
| `:callback` | Name of callback function to call with the token. When `element` is `:input`, this defaults to a function named `setInputWithRecaptchaResponseTokenFor#{sanitize_action(action)}` that sets the value of the hidden input to the token. |
| `:id` | Specify a unique `id` attribute for the `<input>` element if using `element: :input`. (default: `"g-recaptcha-response-data-"` + `action`) |
Expand Down

0 comments on commit b4e956a

Please sign in to comment.