File tree Expand file tree Collapse file tree 1 file changed +0
-44
lines changed
app/code/Magento/SendFriend/Controller/Product Expand file tree Collapse file tree 1 file changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -134,48 +134,4 @@ public function execute()
134
134
$ resultRedirect ->setUrl ($ this ->_redirect ->error ($ url ));
135
135
return $ resultRedirect ;
136
136
}
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
- // }
181
137
}
You can’t perform that action at this time.
0 commit comments