Share via


UserManager<TUser>.GetTwoFactorEnabledAsync(TUser) Method

Definition

Returns a flag indicating whether the specified user has two factor authentication enabled or not, as an asynchronous operation.

public:
 virtual System::Threading::Tasks::Task<bool> ^ GetTwoFactorEnabledAsync(TUser user);
public virtual System.Threading.Tasks.Task<bool> GetTwoFactorEnabledAsync (TUser user);
abstract member GetTwoFactorEnabledAsync : 'User -> System.Threading.Tasks.Task<bool>
override this.GetTwoFactorEnabledAsync : 'User -> System.Threading.Tasks.Task<bool>
Public Overridable Function GetTwoFactorEnabledAsync (user As TUser) As Task(Of Boolean)

Parameters

user
TUser

The user whose two factor authentication enabled status should be retrieved.

Returns

The Task that represents the asynchronous operation, true if the specified user has two factor authentication enabled, otherwise false.

Applies to