IdentityUser<TKey>.TwoFactorEnabled 属性

定义

获取或设置一个标志,该标志指示是否为此用户启用了双因素身份验证。

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

属性值

如果启用 2fa,则为 True,否则为 false。

属性

适用于