UserManager<TUser, TKey>.ResetPasswordAsync Method (TKey, String, String)
Resets a user password using a reset password token.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public virtual Task<IdentityResult> ResetPasswordAsync(
TKey userId,
string token,
string newPassword
)
public:
virtual Task<IdentityResult^>^ ResetPasswordAsync(
TKey userId,
String^ token,
String^ newPassword
)
abstract ResetPasswordAsync :
userId:'TKey *
token:string *
newPassword:string -> Task<IdentityResult>
override ResetPasswordAsync :
userId:'TKey *
token:string *
newPassword:string -> Task<IdentityResult>
Public Overridable Function ResetPasswordAsync (
userId As TKey,
token As String,
newPassword As String
) As Task(Of IdentityResult)
Parameters
userId
Type: TKeyThe user ID.
token
Type: System.StringThe password token.
newPassword
Type: System.StringThe new password.
Return Value
Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.
See Also
UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top