You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -28,7 +27,7 @@ class MultiCaptchaCIConfig extends BaseConfig
28
27
'secret_key' => "Set_ARCaptcha_Secret_Key", //Required. Your account secret key.
29
28
//Enable more customization ArCaptcha .
30
29
'color' => '#119744', //Optional. Set color of every colored element in widget.color name or hex code;
31
-
//'lang' => 'fa', //Optional. Set language of widget . Defaults to fa.(en | fa)
30
+
'lang'=> '', //Optional(en | fa) : Set language of widget . Defaults CI lang .
32
31
'size' => 'normal', //Optional. Set the size of the widget. Defaults to normal.(normal | inivisible)
33
32
'theme' => 'light', //Optional. Set the theme of widget. Defualts to light.(light | dark)
34
33
'callback' => '', //Optional. Called when the user submits a successful response. The arcaptcha-token token is passed to your callback.(<function name>)
@@ -43,7 +42,7 @@ class MultiCaptchaCIConfig extends BaseConfig
43
42
'site_key' => "Set_biBot_Site_Key", //Required. The sitekey you expect to see.
44
43
'secret_key' => "Set_biBot_Secret_Key", //Required. Your account secret key.
45
44
//bibot-captcha tag attributes
46
-
//'lang' => 'fa', //fa | en
45
+
'lang'=> '', //Optional :: fa | en (Defaults CI lang)
47
46
'callback' => '',
48
47
//No need to change.
49
48
'BaseURI' => 'https://api.bibot.ir/', //Required.Api Base Uri
@@ -55,6 +54,7 @@ class MultiCaptchaCIConfig extends BaseConfig
55
54
public$reCaptcha=[
56
55
'site_key' => "Set_reCaptcha_Site_Key", //Required. The sitekey you expect to see.
57
56
'secret_key' => "Set_reCaptcha_Secret_Key", //Required. Your account secret key.
57
+
'lang' => '', //Optional :: fa | en (Defaults CI lang)
58
58
// g-recaptcha tag attributes
59
59
'theme' => 'light', //dark | light
60
60
'size' => 'normal', //compact | normal
@@ -67,4 +67,25 @@ class MultiCaptchaCIConfig extends BaseConfig
67
67
'ScriptURL' => 'https://www.google.com/recaptcha/api.js', //Required for run api
//You can get that at https://dashboard.hcaptcha.com/settings and register then get the SiteKey and SecretKey from the hcaptcha panel.
72
+
public$hCaptcha=[
73
+
'site_key' => "Set_hCaptcha_Site_Key", //Required. The sitekey you expect to see.
74
+
'secret_key' => "Set_hCaptcha_Site_Key", //Required. Your account secret key.
75
+
'lang' => '', //Optional :: fa | en and https://docs.hcaptcha.com/languages (Defaults CI lang)
76
+
// h-captcha tag attributes
77
+
'theme' => 'light', //dark | light
78
+
'size' => 'normal', //compact | normal
79
+
'tabindex' => '', //Optional. Set the tabindex of the widget and popup. When appropriate, can make navigation more intuitive on your site. Defaults to 0.
80
+
'callback' => '', //Optional. Called when the user submits a successful response. The h-captcha-response token is passed to your callback.
81
+
'expired_callback' => '', //Optional. Called when the passcode response expires and the user must re-verify.
82
+
'chalexpired_callback' => '', //Optional. Called when the user display of a challenge times out with no answer.
83
+
'open_callback' => '', //Optional. Called when the user display of a challenge starts.
84
+
'close_callback' => '', //Optional. Called when the user dismisses a challenge.
85
+
'error_callback' => '', //Optional. Called when hCaptcha encounters an error and cannot continue. If you specify an error callback, you must inform the user that they should retry. Please see https://docs.hcaptcha.com/configuration#error-codes.
86
+
//No need to change.
87
+
'BaseURI' => 'https://hcaptcha.com/', //Required.Api Base Uri
88
+
'ScriptURL' => 'https://js.hcaptcha.com/1/api.js', //Required for run api
'g-recaptcha-response' => "I'm not a robot(recaptcha)",
80
80
],
81
+
// Custom Validation language for hCaptcha
82
+
'hCaptcha'=> [
83
+
'errors' => [
84
+
'unknown' => 'The system detected you as a robot for some reason, try again.',
85
+
'empty' => "Please check I'm human(hcaptcha).",
86
+
'unable_to_connect_api' => 'It is not possible to connect to hcaptcha services at this time. The Internet may be down or hcaptcha servers may be down. Try again in a few minutes.',
87
+
'attack' => 'Avoid manipulating ReCaptcha form(I am not a robot).',
88
+
// hCaptcha errors Api responses
89
+
'missing-input-secret' => 'The hcaptcha secret parameter is missing.',
90
+
'invalid_input_secret' => 'The hcaptcha secret parameter is invalid or malformed.',
91
+
'missing_input_response' => 'The hcaptcha response parameter is missing.',
92
+
'invalid_input_response' => 'The hcaptcha response parameter is invalid or malformed.',
93
+
'bad_request' => 'The hcaptcha request is invalid or malformed.',
94
+
'invalid_or_already_seen_response' => 'The response parameter has already been checked, or has another issue.',
95
+
'not_using_dummy_passcode' => 'You have used a testing sitekey but have not used its matching secret.',
96
+
'sitekey_secret_mismatch' => 'The sitekey is not registered with the provided secret.',
97
+
],
98
+
// filde name for print $this->validation->setRule('h-captcha-response', lang('MultiCaptchaCILang.hCaptcha.h-captcha-response'), 'required|hcaptcha');
'unknown' => 'سیستم به دلایلی شما را ربات تشخیص داد،مجدد تلاش کنید.',
85
+
'empty' => 'لطفا،تیک من انسان هستم را بزنید.',
86
+
'unable_to_connect_api' => 'در این دقایق امکان برقرای ارتباط با سرویس گوگل وجود ندارد.ممکن است اینترنت اختلال و یا سرورهای اچ کپچا از دسترس خارج باشند.',
87
+
'attack' => 'از دستکاری فرم من ربات نیستم پرهیز کنید.',
'invalid_input_secret' => 'کلید خصوصی گوگل اشتباه می باشد.از فایل کانفینگ کلید خصوصی hcaptcha را تنظیم کنید.',
91
+
'missing_input_response' => 'پارامتر پاسخ کاربر به وب سرویس hcaptcha ارسال نشده است،لطفا از دستکاری فایلهای اصلی اجتناب کنید.واز فایل اصلی کتابخانه استفاده کنید.',
92
+
'invalid_input_response' => 'پاسخ شما اشتباه تشخیص داده شد',
93
+
'bad_request' => 'درخواست نا معتبر!',
94
+
'invalid_or_already_seen_response' => 'پارامتر پاسخ قبلاً بررسی شده است یا مشکل دیگری دارد.',
95
+
'not_using_dummy_passcode' => 'شما از یک کلیدسایت آزمایشی استفاده کرده اید اما از کلید مخفی مربوط به آن استفاده نکرده اید.',
96
+
'sitekey_secret_mismatch' => ' کلید سایت با کلید مخفی ارائه شده ثبت نشده است.',
97
+
],
98
+
// filde name for print $this->validation->setRule('h-captcha-response', lang('MultiCaptchaCILang.hCaptcha.h-captcha-response'), 'required|hcaptcha');
0 commit comments