Dela via


IdentityUser<TKey>.TwoFactorEnabled Property

Definition

Gets or sets a flag indicating if two factor authentication is enabled for this user.

public:
 virtual property bool TwoFactorEnabled { bool get(); void set(bool value); };
public virtual bool TwoFactorEnabled { get; set; }
[Microsoft.AspNetCore.Identity.PersonalData]
public virtual bool TwoFactorEnabled { get; set; }
member this.TwoFactorEnabled : bool with get, set
[<Microsoft.AspNetCore.Identity.PersonalData>]
member this.TwoFactorEnabled : bool with get, set
Public Overridable Property TwoFactorEnabled As Boolean

Property Value

True if 2fa is enabled, otherwise false.

Attributes

Applies to