UserManager<TUser, TKey>.ResetPasswordAsync Method

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

'Declaration
Public Overridable Function ResetPasswordAsync ( _
    userId As TKey, _
    token As String, _
    newPassword As String _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager 
Dim userId As TKey
Dim token As String 
Dim newPassword As String 
Dim returnValue As Task(Of IdentityResult)

returnValue = instance.ResetPasswordAsync(userId, _
    token, newPassword)
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 function ResetPasswordAsync(
    userId : TKey, 
    token : String, 
    newPassword : String
) : Task<IdentityResult>

Parameters

  • userId
    Type: TKey
    The user ID.

Return Value

Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity