MfaSettings Class

Component to display MFA settings

Definition

Namespace: MobileTrack.Web.Components.Components
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class MfaSettings : ComponentBase, 
	IHasLocalization
Inheritance
Object    ComponentBase    MfaSettings
Implements
IHasLocalization

Constructors

MfaSettingsInitializes a new instance of the MfaSettings class

Properties

IsGoogleAuthEnabled Indicates whether Google authentication is enabled.
IsGoogleAuthEnabledChanged The event callback that is triggered when the Google authentication enabled state is changed.
IsMicrosoftAuthEnabled Indicates whether Microsoft authentication is enabled.
IsMicrosoftAuthEnabledChanged The function that is called when the Microsoft authenticator checkbox is changed.
IsSmsAuthEnabled Indicates whether SMS authentication is enabled.
IsSmsAuthEnabledChanged The function that is called when the phone number checkbox is changed.
Loc Dependency injection for the localization tool. It derives texts established in CosmosDB's "LocalizedStrings" container. It can be used by invoking it as an array, with the key of the text you want to get. Parameters for the string can be added in the array as well, similar to Format(String, Object).
If the text is not found, it will return the key itself as fallback.

The language the key will be localized based on is based on the CurrentCulture and the CurrentUICulture.
If you want to localize something in a different language, you will have to apply the culture on the CultureInfo properties, get the text,
and revert back to the original culture.

Methods

SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))

See Also