SignInManager<TUser>.CheckPasswordSignInAsync(TUser, String, Boolean) SignInManager<TUser>.CheckPasswordSignInAsync(TUser, String, Boolean) SignInManager<TUser>.CheckPasswordSignInAsync(TUser, String, Boolean) SignInManager<TUser>.CheckPasswordSignInAsync(TUser, String, Boolean) Method

Definition

Attempts a password sign in for a user.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::SignInResult ^> ^ CheckPasswordSignInAsync(TUser user, System::String ^ password, bool lockoutOnFailure);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult> CheckPasswordSignInAsync (TUser user, string password, bool lockoutOnFailure);
abstract member CheckPasswordSignInAsync : 'User * string * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
override this.CheckPasswordSignInAsync : 'User * string * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
Public Overridable Function CheckPasswordSignInAsync (user As TUser, password As String, lockoutOnFailure As Boolean) As Task(Of SignInResult)

Parameters

user
TUser TUser TUser TUser

The user to sign in.

password
String String String String

The password to attempt to sign in with.

lockoutOnFailure
Boolean Boolean Boolean Boolean

Flag indicating if the user account should be locked if the sign in fails.

Returns

The task object representing the asynchronous operation containing the for the sign-in attempt.

Applies to