Verification of anonymous users is not being respected with Simplenews 4.0

Created on 1 May 2024, 2 months ago
Updated 28 May 2024, about 1 month ago

Problem/Motivation

Hello, with Simplenews 4.0 the Webform Simplenews Handler 2.0.1 auto activates the subscription passing by the 'Verification of anonymous users' setting of the Simplenews module.

Steps to reproduce

Just use the Webform Simplenews Handler 2.0.1 version with Simplenews 4.0 and after subscribing an email through the Webform Simplenews Handler the subscription has status Active instead of Unconfirmed.

Proposed resolution

The Simplenews 4.0 method subscribe() of the subscriptionManager class no longer defines the $confirm as a function variable. A quick work around for me was to add the below line to SubscriptionManager.php (line 107)

$subscriber->setStatus(SubscriberInterface::UNCONFIRMED);

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡·Greece chrbak

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024