Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
fix logic issue with appear always
Browse files Browse the repository at this point in the history
  • Loading branch information
ProxiBlue committed Jan 27, 2018
1 parent 57a98b7 commit 6634e1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/code/community/ProxiBlue/ReCaptcha/Model/Recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,15 @@ public function getElementId($type = 'input')
*/
public function isRequired($login = null)
{
if(!$this->_isEnabled() || !in_array($this->_formId, $this->_getTargetForms())){
return false;
}

if (in_array($this->_formId, $this->_alwaysShow)) {
return true;
}

if ($this->_isUserAuth() || !$this->_isEnabled() || !in_array($this->_formId, $this->_getTargetForms())) {
if ($this->_isUserAuth()) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/ProxiBlue/ReCaptcha/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<ProxiBlue_ReCaptcha>
<version>1.5.0</version>
<version>1.5.1</version>
<depends>
<Mage_Captcha/>
</depends>
Expand Down

0 comments on commit 6634e1d

Please sign in to comment.