Class TwoFactorResponseConfiguration
- Namespace
- DisCatSharp.Extensions.TwoFactorCommands
- Assembly
- DisCatSharp.Extensions.TwoFactorCommands.dll
Represents a message configuration for TwoFactorExtension.
public sealed class TwoFactorResponseConfiguration
- Inheritance
-
TwoFactorResponseConfiguration
- Inherited Members
Constructors
- TwoFactorResponseConfiguration()
Creates a new instance of TwoFactorResponseConfiguration.
Properties
- AuthenticationFailureMessage
Sets the message when an incorrect two factor auth code was entered.
Defaults to: Code invalid..
- AuthenticationModalRequestTitle
Sets the modal title for two factor auth requests.
Defaults to: Enter 2FA Code
- AuthenticationNotEnrolledMessage
Sets the message when an user is not yet enrolled into two factor auth.
Defaults to: You are not enrolled in two factor.
- AuthenticationSuccessMessage
Sets the message when an correct two factor auth code was entered.
Defaults to: Code valid!
- AuthenticatorAccountPrefix
Sets the account prefix used within the authenticator upon registration.
Defaults to: DisCatSharp Auth
- ShowResponse
Whether to show a response after entering a two factor code. If set to false, you'll need to respond to the modal interaction yourself.
Defaults to: true