We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a789e commit 62fc9e3Copy full SHA for 62fc9e3
app/code/Magento/Newsletter/Model/Subscriber.php
@@ -393,12 +393,14 @@ public function randomSequence($length = 32)
393
*/
394
public function subscribe($email)
395
{
396
- $sendInformationEmail = false;
397
$this->loadByEmail($email);
398
+ if ($this->getId() && $this->getStatus() == self::STATUS_SUBSCRIBED) {
399
+ return $this->getStatus();
400
+ }
401
+
402
if (!$this->getId()) {
403
$this->setSubscriberConfirmCode($this->randomSequence());
- $sendInformationEmail = true;
404
}
405
406
$isConfirmNeed = $this->_scopeConfig->getValue(
0 commit comments