Skip to content

Improve default Identity email wording for recipients who didn't initiate the action#66747

Open
GrantTotinov wants to merge 2 commits into
dotnet:mainfrom
GrantTotinov:issue-66643-identity-email-wording
Open

Improve default Identity email wording for recipients who didn't initiate the action#66747
GrantTotinov wants to merge 2 commits into
dotnet:mainfrom
GrantTotinov:issue-66643-identity-email-wording

Conversation

@GrantTotinov
Copy link
Copy Markdown

Improve default Identity email wording for recipients who didn't initiate the action

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Description

Adds a follow-up sentence to the default confirmation and password-reset emails
to inform recipients who did not initiate the action that they can safely ignore the email.

Note: The issue mentions src/Identity/UI/src/Services/EmailSenderExtensions.cs
but this file does not exist in the repository. Verified against upstream/main.
Only the two existing files were updated.

Fixes #66643

@GrantTotinov GrantTotinov requested a review from halter73 as a code owner May 20, 2026 03:14
Copilot AI review requested due to automatic review settings May 20, 2026 03:14
@github-actions github-actions Bot added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically label May 20, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label May 20, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Thanks for your PR, @GrantTotinov. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the built-in ASP.NET Core Identity email templates to add guidance for recipients who didn’t initiate an action, improving clarity and reducing confusion for unsolicited emails.

Changes:

  • Appends an “ignore this email if you didn’t initiate” sentence to the default email confirmation and password reset messages.
  • Applies the same wording improvement to the Identity.ExternalClaims sample’s email helper extensions.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/Shared/DefaultMessageEmailSender.cs Updates default Identity confirmation/reset email bodies to include an “ignore if not initiated” follow-up sentence.
src/Security/samples/Identity.ExternalClaims/Extensions/EmailSenderExtensions.cs Updates sample email confirmation/reset message bodies to include the same follow-up sentence.


public Task SendConfirmationLinkAsync(TUser user, string email, string confirmationLink) =>
emailSender.SendEmailAsync(email, "Confirm your email", $"Please confirm your account by <a href='{confirmationLink}'>clicking here</a>.");
emailSender.SendEmailAsync(email, "Confirm your email", $"Please confirm your account by <a href='{confirmationLink}'>clicking here</a>. If you didn't create an account, you can ignore this email.");
{
return emailSender.SendEmailAsync(email, "Confirm your email",
$"Please confirm your account by <a href='{HtmlEncoder.Default.Encode(link)}'>clicking here</a>.");
$"Please confirm your account by <a href='{HtmlEncoder.Default.Encode(link)}'>clicking here</a>. If you didn't create an account, you can ignore this email.");
@github-actions github-actions Bot added area-identity Includes: Identity and providers and removed needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically labels May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-identity Includes: Identity and providers community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve default Identity email wording for recipients who didn't initiate the action

2 participants