UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetTwoFactorEnabledAsync(TUser, Boolean, CancellationToken) UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetTwoFactorEnabledAsync(TUser, Boolean, CancellationToken) Method

Definition

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

public virtual System.Threading.Tasks.Task SetTwoFactorEnabledAsync (TUser user, bool enabled, System.Threading.CancellationToken cancellationToken = null);
abstract member SetTwoFactorEnabledAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetTwoFactorEnabledAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

user
TUser TUser

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

enabled
Boolean Boolean

A flag indicating whether the specified user has two factor authentication enabled.

cancellationToken
CancellationToken CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The Task that represents the asynchronous operation.

Implements

Applies to