UserManager<TUser>.ResetPasswordAsync(TUser, String, String) 方法

定义

user验证给定的密码重置后,将 的密码重置token为指定的 newPassword

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ResetPasswordAsync(TUser user, System::String ^ token, System::String ^ newPassword);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ResetPasswordAsync (TUser user, string token, string newPassword);
abstract member ResetPasswordAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.ResetPasswordAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function ResetPasswordAsync (user As TUser, token As String, newPassword As String) As Task(Of IdentityResult)

参数

user
TUser

应重置其密码的用户。

token
String

要验证的密码重置令牌。

newPassword
String

重置令牌验证成功时要设置的新密码。

返回

表示 Task 异步操作的 ,包含 IdentityResult 操作的 。

适用于