- Issue created by @chrbak
- π¨πSwitzerland Lukas von Blarer
Lukas von Blarer β made their first commit to this issueβs fork.
- π¨πSwitzerland Lukas von Blarer
I was quite confused by this. I think the simplenews 4.x release took the wrong path here... This is a very unintuitive API. And in my opinion very prone to errors. Take a look at this:
<?php /** * Checks if subscriber confirmation should be skipped. * * @return bool * TRUE if confirmation should be skipped. */ public static function skipConfirmation() { // Skip if logged in or if configured to skip. return \Drupal::currentUser()->id() || \Drupal::config('simplenews.settings')->get('subscription.skip_verification'); } ?>
Any logged in user can skip confirmation to subscribe any email address. And this is on an API level.
- Merge request !7Draft: Resolve #3444604 "Verification of anonymous" β (Closed) created by Lukas von Blarer
- π¨πSwitzerland Lukas von Blarer
Here is a first draft to fix this issue.
- Merge request !8Draft: Resolve #3444604 "Verification of anonymous" β (Open) created by Lukas von Blarer
- Status changed to Needs review
7 months ago 12:16pm 28 May 2024