Skip to content

Commit f49413c

Browse files
Develop (#2)
* Update Captcha.php * Update README.md
1 parent 7c15e49 commit f49413c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Features
1515
* Not printable by default
1616
* Development keys by default
1717
* Better responsive Improvements
18-
* Support for google [reCaptcha](https://www.hcaptcha.com/) and also [hCaptcha](https://developers.google.com/recaptcha)
18+
* Support for google [reCaptcha](https://developers.google.com/recaptcha) and also [hCaptcha](https://www.hcaptcha.com)
1919
* Support for multiple validators, widgets and keys at the same time
2020

2121
Installation

src/Captcha.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ public function init()
6363
continue;
6464
}
6565

66+
if (!in_array($this->attribute, $validator->attributes)) {
67+
continue;
68+
}
69+
6670
$this->type = empty($this->type)? $validator->type: $this->type;
6771
$this->siteKey = empty($this->siteKey)? $validator->siteKey: $this->siteKey;
6872
}

0 commit comments

Comments
 (0)