Skip to content

Commit 9af58f1

Browse files
author
roman
committed
MAGETWO-95400: Incorrect send-friend feature flow
1 parent 430a437 commit 9af58f1

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

app/code/Magento/SendFriend/Controller/Product/Sendmail.php

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -134,48 +134,4 @@ public function execute()
134134
$resultRedirect->setUrl($this->_redirect->error($url));
135135
return $resultRedirect;
136136
}
137-
//
138-
// /**
139-
// * Method validates captcha, if it's enabled for target form
140-
// *
141-
// * @throws LocalizedException
142-
// */
143-
// private function validateCaptcha() : void
144-
// {
145-
// $captchaTargetFormName = 'product_sendtofriend_form';
146-
// /** @var DefaultModel $captchaModel */
147-
// $captchaModel = $this->captchaHelper->getCaptcha($captchaTargetFormName);
148-
//
149-
// if ($captchaModel->isRequired()) {
150-
// $word = $this->captchaStringResolver->resolve(
151-
// $this->getRequest(),
152-
// $captchaTargetFormName
153-
// );
154-
//
155-
// $isCorrectCaptcha = $captchaModel->isCorrect($word);
156-
//
157-
// if (!$isCorrectCaptcha) {
158-
// $this->logCaptchaAttempt($captchaModel);
159-
// throw new LocalizedException(__('Incorrect CAPTCHA'));
160-
// }
161-
// }
162-
//
163-
// $this->logCaptchaAttempt($captchaModel);
164-
// }
165-
//
166-
// /**
167-
// * Log captcha attempts
168-
// *
169-
// * @param DefaultModel $captchaModel
170-
// */
171-
// private function logCaptchaAttempt(DefaultModel $captchaModel) : void
172-
// {
173-
// $email = '';
174-
//
175-
// if ($this->currentUser->getUserType() == UserContextInterface::USER_TYPE_CUSTOMER) {
176-
// $email = $this->customerRepository->getById($this->currentUser->getUserId())->getEmail();
177-
// }
178-
//
179-
// $captchaModel->logAttempt($email);
180-
// }
181137
}

0 commit comments

Comments
 (0)