Skip to content

Conversation

@rdehnhardt
Copy link

@rdehnhardt rdehnhardt commented Oct 14, 2025

When the user’s email is changed, triggers a verification email to ensure the new address is valid.

Includes a test (UpdateUser) to assert that the notification is sent in this scenario.

Fixed email verification reset when updating non-email fields

Previously, updating any user attribute (e.g., avatar) would unintentionally set email_verified_at to null due to the conditional logic always evaluating to true when email wasn't present in the attributes array.

Changed the condition to explicitly check if the email key exists in the attributes array before comparing values, ensuring email_verified_at is only reset when the email is actually being changed.

@rdehnhardt rdehnhardt changed the title Send email verification notification on email change feat(UpdateUser): resend verification on email change and fix validation translation Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant