Class RequestOtpCommand
Command to request a one-time password (OTP).
public class RequestOtpCommand : ICommand
- Inheritance
-
objectRequestOtpCommand
- Implements
Properties
BypassOtp
Indicates whether to bypass OTP generation and sending, allowing for testing of the login flow without needing to receive an OTP.
public bool BypassOtp { get; init; }
Property Value
- bool
The email address to which the OTP will be sent.
[Required(ErrorMessage = "Email address is required.")]
[EmailAddress(ErrorMessage = "Invalid email format.")]
public string Email { get; init; }
Property Value
- string
Locale
BCP 47 language tag for the email to send (e.g. "en", "es", "am"). Falls back to "en" if the locale has no matching translation.
public string Locale { get; init; }
Property Value
- string