Skip to content

Commit

Permalink
Verification of customer's email is now removed
Browse files Browse the repository at this point in the history
  • Loading branch information
tbajorek authored Nov 9, 2016
1 parent 33e4519 commit e70524b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions include/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public function make() {
$this->checkMethod() &&
$this->checkAmountAndCurrency() &&
$this->checkId() &&
$this->checkEmail() &&
$this->checkSignature() &&
$this->changeStatus() &&
$this->registerOcCard());
Expand Down Expand Up @@ -132,17 +131,6 @@ private function checkId() {
return false;
}

/**
* Checks, if customer email address from request is the same as in order details
* @return boolean
*/
private function checkEmail() {
if(Dotpay::getParam('email')==$this->getOrder()->mail)
return true;
$this->message = 'DrupalCommerce - FAIL EMAIL';
return false;
}

/**
* Checks, if coming request is unchanged and not forget
* @return boolean
Expand Down Expand Up @@ -268,4 +256,4 @@ private function registerOcCard() {
}
return false;
}
}
}

1 comment on commit e70524b

@tbajorek
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2 Fix for this issue

Please sign in to comment.