UserManager<TUser, TKey>.VerifyPasswordAsync Method (IUserPasswordStore<TUser, TKey>, TUser, String)

 

Retrieves the hashed password from the user store and calls PasswordHasher.VerifyHashPassword.

Namespace:   Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

protected virtual Task<bool> VerifyPasswordAsync(
    IUserPasswordStore<TUser, TKey> store,
    TUser user,
    string password
)
protected:
virtual Task<bool>^ VerifyPasswordAsync(
    IUserPasswordStore<TUser, TKey>^ store,
    TUser user,
    String^ password
)
abstract VerifyPasswordAsync : 
        store:IUserPasswordStore<'TUser, 'TKey> *
        user:'TUser *
        password:string -> Task<bool>
override VerifyPasswordAsync : 
        store:IUserPasswordStore<'TUser, 'TKey> *
        user:'TUser *
        password:string -> Task<bool>
Protected Overridable Function VerifyPasswordAsync (
    store As IUserPasswordStore(Of TUser, TKey),
    user As TUser,
    password As String
) As Task(Of Boolean)

Parameters

  • user
    Type: TUser

    The user.

Return Value

Type: System.Threading.Tasks.Task<Boolean>

The task representing the asynchronous operation.

See Also

UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top