@@ -10,13 +10,13 @@ The preferred way to install this extension is through [composer](http://getcomp
10
10
Either run
11
11
12
12
```
13
- php composer.phar require --prefer-dist baha2odeh /yii2-recaptcha-v3 "*"
13
+ php composer.phar require --prefer-dist kekaadrenalin /yii2-module -recaptcha-v3 "*"
14
14
```
15
15
16
16
or add
17
17
18
18
```
19
- "baha2odeh /yii2-recaptcha-v3": "*"
19
+ "kekaadrenalin /yii2-module -recaptcha-v3": "*"
20
20
```
21
21
22
22
to the require section of your ` composer.json ` file.
@@ -32,10 +32,10 @@ add this to your components main.php
32
32
``` php
33
33
'components' => [
34
34
...
35
- 'recaptchaV3 ' => [
36
- 'class' => 'Baha2Odeh\RecaptchaV3\RecaptchaV3 ',
37
- 'site_key' => '###',
38
- 'secret_key' => '###',
35
+ 'reCaptcha3 ' => [
36
+ 'class' => 'kekaadrenalin\recaptcha3\ReCaptcha ',
37
+ 'site_key' => 'site_key_ ###',
38
+ 'secret_key' => 'secret_key_ ###',
39
39
],
40
40
41
41
```
@@ -45,18 +45,19 @@ and in your model
45
45
acceptance_score the minimum score for this request (0.0 - 1.0) or null
46
46
47
47
``` php
48
- public $code ;
48
+ public $reCaptcha ;
49
49
50
- public function rules(){
50
+ public function rules()
51
+ {
51
52
return [
52
53
...
53
- [['code '],RecaptchaV3Validator ::className(),'acceptance_score'=>null ]
54
+ [['reCaptcha '], \kekaadrenalin\recaptcha3\ReCaptchaValidator ::className(), 'acceptance_score' => 0 ]
54
55
];
55
- }
56
+ }
56
57
```
57
58
58
59
``` php
59
- <?= $form->field($model,'code ')->widget(\Baha2Odeh\RecaptchaV3\RecaptchaV3Widget::className());
60
+ <?= $form->field($model, 'reCaptcha ')->widget(\kekaadrenalin\recaptcha3\ReCaptchaWidget::class) ?>
60
61
```
61
62
62
63
0 commit comments