Skip to content

Commit

Permalink
Develop (#2)
Browse files Browse the repository at this point in the history
* Update Captcha.php

* Update README.md
  • Loading branch information
RodrigoDornelles authored Dec 20, 2021
1 parent 7c15e49 commit f49413c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Features
* Not printable by default
* Development keys by default
* Better responsive Improvements
* Support for google [reCaptcha](https://www.hcaptcha.com/) and also [hCaptcha](https://developers.google.com/recaptcha)
* Support for google [reCaptcha](https://developers.google.com/recaptcha) and also [hCaptcha](https://www.hcaptcha.com)
* Support for multiple validators, widgets and keys at the same time

Installation
Expand Down
4 changes: 4 additions & 0 deletions src/Captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public function init()
continue;
}

if (!in_array($this->attribute, $validator->attributes)) {
continue;
}

$this->type = empty($this->type)? $validator->type: $this->type;
$this->siteKey = empty($this->siteKey)? $validator->siteKey: $this->siteKey;
}
Expand Down

0 comments on commit f49413c

Please sign in to comment.