SignInManager<TUser>.PreSignInCheck(TUser) Method

Definition

Used to ensure that a user is allowed to sign in.

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::SignInResult ^> ^ PreSignInCheck(TUser user);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult> PreSignInCheck (TUser user);
abstract member PreSignInCheck : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
override this.PreSignInCheck : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
Protected Overridable Function PreSignInCheck (user As TUser) As Task(Of SignInResult)

Parameters

user
TUser

The user

Returns

Task<SignInResult>

Null if the user should be allowed to sign in, otherwise the SignInResult why they should be denied.

Applies to