SignInManager<TUser>.PreSignInCheck(TUser) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
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
Null if the user should be allowed to sign in, otherwise the SignInResult why they should be denied.