Add email verification and one-click notification unsubscribe#360
Merged
Add email verification and one-click notification unsubscribe#360
Conversation
- Re-enable MustVerifyEmail on User model and fire Registered event on registration - Add EmailVerificationController with verification routes (notice, verify, resend) - Add persistent dashboard banner prompting unverified users to verify email - Add one-click unsubscribe/resubscribe via signed URLs in notification emails - Update SuppressMailNotificationListener to always allow system emails (e.g. VerifyEmail) - Remove email_verified_at field from admin user edit form - Add comprehensive tests for email verification and notification unsubscribe flows Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MustVerifyEmailon the User model and fires theRegisteredevent on registration so new users receive a verification email. A non-blocking banner on the Dashboard prompts unverified users to verify, with a button to resend the verification link. No functionality is gated behind verification.VerifyEmailnow bypass the notification preference check so they're always delivered. Also fixes a null-to-bool return type issue.email_verified_atfield from the Filament admin user edit form since it's not useful when verification doesn't gate functionality.Test plan
php artisan test --compact tests/Feature/Auth/EmailVerificationTest.php— 11 tests covering registration sends verification, link verification, resend, invalid signatures, dashboard banner visibilityphp artisan test --compact tests/Feature/NotificationUnsubscribeTest.php— tests for unsubscribe/resubscribe flowsphp artisan test --compact tests/Feature/Auth/AuthPagesTest.php— existing auth tests still passphp artisan test --compact tests/Feature/Filament/— admin tests still pass🤖 Generated with Claude Code