Table of Contents

Class RequestOtpCommand

Namespace
SEBT.Portal.UseCases.Auth
Assembly
SEBT.Portal.UseCases.dll

Command to request a one-time password (OTP).

public class RequestOtpCommand : ICommand
Inheritance
object
RequestOtpCommand
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

Email

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