Share via


IEmailSender<TUser>.SendPasswordResetCodeAsync Method

Definition

This API supports the ASP.NET Core Identity infrastructure and is not intended to be used as a general purpose email abstraction. It should be implemented by the application so the Identity infrastructure can send password reset emails.

public System.Threading.Tasks.Task SendPasswordResetCodeAsync (TUser user, string email, string resetCode);
abstract member SendPasswordResetCodeAsync : 'User * string * string -> System.Threading.Tasks.Task
Public Function SendPasswordResetCodeAsync (user As TUser, email As String, resetCode As String) As Task

Parameters

user
TUser

The user that is attempting to reset their password.

email
String

The recipient's email address.

resetCode
String

The code to use to reset the user password. Do not double encode this.

Returns

Applies to