UserManager<TUser, TKey>.VerifyPasswordAsync Method

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

'Declaration
Protected Overridable Function VerifyPasswordAsync ( _
    store As IUserPasswordStore(Of TUser, TKey), _
    user As TUser, _
    password As String _
) As Task(Of Boolean)
'Usage
Dim store As IUserPasswordStore(Of TUser, TKey)
Dim user As TUser
Dim password As String 
Dim returnValue As Task(Of Boolean)

returnValue = Me.VerifyPasswordAsync(store, _
    user, password)
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 function VerifyPasswordAsync(
    store : IUserPasswordStore<TUser, TKey>, 
    user : TUser, 
    password : String
) : Task<boolean>

Parameters

  • user
    Type: TUser
    The user.

Return Value

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

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity