|
13 | 13 | */
|
14 | 14 | return [
|
15 | 15 |
|
16 |
| - /** |
17 |
| - * |
18 |
| - * The site key |
19 |
| - * get site key @ www.google.com/recaptcha/admin |
20 |
| - * |
21 |
| - */ |
22 |
| - 'api_site_key' => env('RECAPTCHA_SITE_KEY', ''), |
23 |
| - |
24 |
| - /** |
25 |
| - * |
26 |
| - * The secret key |
27 |
| - * get secret key @ www.google.com/recaptcha/admin |
28 |
| - * |
29 |
| - */ |
30 |
| - 'api_secret_key' => env('RECAPTCHA_SECRET_KEY', ''), |
31 |
| - |
32 |
| - /** |
33 |
| - * |
34 |
| - * ReCATCHA version |
35 |
| - * Supported: "v2", "invisible", "v3", |
36 |
| - * |
37 |
| - * get more info @ https://developers.google.com/recaptcha/docs/versions |
38 |
| - * |
39 |
| - */ |
40 |
| - 'version' => env('RECAPTCHA_DEFAULT_VERSION', 'v2'), |
41 |
| - |
42 |
| - /** |
43 |
| - * |
44 |
| - * The curl timout in seconds to validate a recaptcha token |
45 |
| - * @since v3.5.0 |
46 |
| - * |
47 |
| - */ |
48 |
| - 'curl_timeout' => env('RECAPTCHA_CURL_TIMEOUT', 10), |
49 |
| - |
50 |
| - /** |
51 |
| - * |
52 |
| - * IP addresses for which validation will be skipped |
53 |
| - * |
54 |
| - */ |
55 |
| - 'skip_ip' => [], |
56 |
| - |
57 |
| - /** |
58 |
| - * |
59 |
| - * Default route called to check the Google reCAPTCHA token |
60 |
| - * @since v3.2.0 |
61 |
| - * |
62 |
| - */ |
63 |
| - 'default_validation_route' => env('RECAPTCHA_DEFAULT_VALIDATION_ROUTE', 'biscolab-recaptcha/validate'), |
64 |
| - |
65 |
| - /** |
66 |
| - * |
67 |
| - * The name of the parameter used to send Google reCAPTCHA token to verify route |
68 |
| - * @since v3.2.0 |
69 |
| - * |
70 |
| - */ |
71 |
| - 'default_token_parameter_name' => env('RECAPTCHA_DEFAULT_TOKEN_PARAMETER_NAME', 'token'), |
72 |
| - |
73 |
| - /** |
74 |
| - * |
75 |
| - * The default Google reCAPTCHA language code |
76 |
| - * It has no effect with v3 |
77 |
| - * @see https://developers.google.com/recaptcha/docs/language |
78 |
| - * @since v3.6.0 |
79 |
| - * |
80 |
| - */ |
81 |
| - 'default_language' => env('RECAPTCHA_DEFAULT_LANGUAGE', null) |
| 16 | + /** |
| 17 | + * |
| 18 | + * The site key |
| 19 | + * get site key @ www.google.com/recaptcha/admin |
| 20 | + * |
| 21 | + */ |
| 22 | + 'api_site_key' => env('RECAPTCHA_SITE_KEY', ''), |
| 23 | + |
| 24 | + /** |
| 25 | + * |
| 26 | + * The secret key |
| 27 | + * get secret key @ www.google.com/recaptcha/admin |
| 28 | + * |
| 29 | + */ |
| 30 | + 'api_secret_key' => env('RECAPTCHA_SECRET_KEY', ''), |
| 31 | + |
| 32 | + /** |
| 33 | + * |
| 34 | + * ReCATCHA version |
| 35 | + * Supported: "v2", "invisible", "v3", |
| 36 | + * |
| 37 | + * get more info @ https://developers.google.com/recaptcha/docs/versions |
| 38 | + * |
| 39 | + */ |
| 40 | + 'version' => 'v2', |
| 41 | + |
| 42 | + /** |
| 43 | + * |
| 44 | + * The curl timout in seconds to validate a recaptcha token |
| 45 | + * @since v3.5.0 |
| 46 | + * |
| 47 | + */ |
| 48 | + 'curl_timeout' => 10, |
| 49 | + |
| 50 | + /** |
| 51 | + * |
| 52 | + * IP addresses for which validation will be skipped |
| 53 | + * |
| 54 | + */ |
| 55 | + 'skip_ip' => [], |
| 56 | + |
| 57 | + /** |
| 58 | + * |
| 59 | + * Default route called to check the Google reCAPTCHA token |
| 60 | + * @since v3.2.0 |
| 61 | + * |
| 62 | + */ |
| 63 | + 'default_validation_route' => 'biscolab-recaptcha/validate', |
| 64 | + |
| 65 | + /** |
| 66 | + * |
| 67 | + * The name of the parameter used to send Google reCAPTCHA token to verify route |
| 68 | + * @since v3.2.0 |
| 69 | + * |
| 70 | + */ |
| 71 | + 'default_token_parameter_name' => 'token', |
| 72 | + |
| 73 | + /** |
| 74 | + * |
| 75 | + * The default Google reCAPTCHA language code |
| 76 | + * It has no effect with v3 |
| 77 | + * @see https://developers.google.com/recaptcha/docs/language |
| 78 | + * @since v3.6.0 |
| 79 | + * |
| 80 | + */ |
| 81 | + 'default_language' => null, |
| 82 | + |
| 83 | + /** |
| 84 | + * |
| 85 | + * The default form ID. Only for "invisible" reCAPTCHA |
| 86 | + * @since v4.0.0 |
| 87 | + * |
| 88 | + */ |
| 89 | + 'default_form_id' => 'biscolab-recaptcha-invisible-form', |
| 90 | + |
| 91 | + /** |
| 92 | + * |
| 93 | + * Deferring the render can be achieved by specifying your onload callback function and adding parameters to the JavaScript resource. |
| 94 | + * It has no effect with v3 and invisible |
| 95 | + * @see https://developers.google.com/recaptcha/docs/display#explicit_render |
| 96 | + * @since v4.0.0 |
| 97 | + * Supported true, false |
| 98 | + * |
| 99 | + */ |
| 100 | + 'explicit' => false, |
| 101 | + |
| 102 | + /** |
| 103 | + * |
| 104 | + * g-recaptcha tag attributes and grecaptcha.render parameters (v2 only) |
| 105 | + * @see https://developers.google.com/recaptcha/docs/display#render_param |
| 106 | + * @since v4.0.0 |
| 107 | + */ |
| 108 | + 'tag_attributes' => [ |
| 109 | + |
| 110 | + /** |
| 111 | + * The color theme of the widget. |
| 112 | + * Supported "light", "dark" |
| 113 | + */ |
| 114 | + 'theme' => 'light', |
| 115 | + |
| 116 | + /** |
| 117 | + * The size of the widget. |
| 118 | + * Supported "normal", "compact" |
| 119 | + */ |
| 120 | + 'size' => 'normal', |
| 121 | + |
| 122 | + /** |
| 123 | + * The tabindex of the widget and challenge. |
| 124 | + * If other elements in your page use tabindex, it should be set to make user navigation easier. |
| 125 | + */ |
| 126 | + 'tabindex' => 0, |
| 127 | + |
| 128 | + /** |
| 129 | + * The name of your callback function, executed when the user submits a successful response. |
| 130 | + * The g-recaptcha-response token is passed to your callback. |
| 131 | + * DO NOT SET "biscolabOnloadCallback" |
| 132 | + */ |
| 133 | + 'callback' => null, |
| 134 | + |
| 135 | + /** |
| 136 | + * The name of your callback function, executed when the reCAPTCHA response expires and the user needs to re-verify. |
| 137 | + * DO NOT SET "biscolabOnloadCallback" |
| 138 | + */ |
| 139 | + 'expired-callback' => null, |
| 140 | + |
| 141 | + /** |
| 142 | + * The name of your callback function, executed when reCAPTCHA encounters an error (usually network connectivity) and cannot continue until connectivity is restored. |
| 143 | + * If you specify a function here, you are responsible for informing the user that they should retry. |
| 144 | + * DO NOT SET "biscolabOnloadCallback" |
| 145 | + */ |
| 146 | + 'error-callback' => null, |
| 147 | + ] |
82 | 148 | ];
|
0 commit comments