Class UserTwoFactorProviderModel
Represents information about a two-factor authentication provider and its status for a user.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract]
public class UserTwoFactorProviderModel
Constructors
View SourceUserTwoFactorProviderModel(string, bool)
Initializes a new instance of the UserTwoFactorProviderModel class.
Declaration
public UserTwoFactorProviderModel(string providerName, bool isEnabledOnUser)
Parameters
| Type | Name | Description |
|---|---|---|
| string | providerName | The name of the two-factor authentication provider. |
| bool | isEnabledOnUser | Indicates whether this provider is enabled for the user. |
Properties
View SourceIsEnabledOnUser
Gets a value indicating whether this two-factor provider is enabled for the user.
Declaration
[DataMember(Name = "isEnabledOnUser")]
public bool IsEnabledOnUser { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ProviderName
Gets the name of the two-factor authentication provider.
Declaration
[DataMember(Name = "providerName")]
public string ProviderName { get; }
Property Value
| Type | Description |
|---|---|
| string |