Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Version 1.0.2 is a security and bug fix release addressing issues found during post-release review of 1.0.1.
## Security Fixes
### Plan enable/disable CSRF vulnerability (P0 — Release blocker)
The plan enable and disable administrative routes previously accepted any HTTP method, including GET, without CSRF token protection. Both routes now require POST method and a valid CSRF token, matching the security pattern used by membership lifecycle routes.
## Bug Fixes
### Event subscriber not registered (P1)
The MembershipLifecycleMailSubscriber was missing from services.yml, meaning no email notifications were sent at runtime. The service is now properly registered with the event_subscriber tag.
### Incomplete event coverage (P2)
Email notifications now cover all 6 lifecycle events. Added handlers and templates for MembershipSuspendedEvent and MembershipAutoRenewedEvent, plus configuration settings (notify_on_suspension, notify_on_auto_renewal) with defaults of true.
## Upgrade Notes
Two new configuration settings are added with defaults of true: notify_on_suspension and notify_on_auto_renewal. No breaking changes.
## Files Changed
- membership_manager.routing.yml
- membership_manager.services.yml
- src/EventSubscriber/MembershipLifecycleMailSubscriber.php
- src/Service/MembershipMailer.php
- membership_manager.mail.inc
- config/schema/membership_manager.schema.yml
- config/install/membership_manager.settings.yml
- CHANGELOG.md