Table of Contents

Class ValidateOtpCommand

Namespace
SEBT.Portal.UseCases.Auth
Assembly
SEBT.Portal.UseCases.dll
public class ValidateOtpCommand : ICommand<string>, ICommand
Inheritance
object
ValidateOtpCommand
Implements
ICommand<string>

Properties

BypassOtp

Indicates whether OTP validation should be bypassed.

public bool BypassOtp { get; init; }

Property Value

bool

Email

The email address associated with the OTP.

[Required(ErrorMessage = "Email address is required.")]
[EmailAddress(ErrorMessage = "Invalid email format.")]
public string Email { get; init; }

Property Value

string

Otp

The one-time password (OTP) to validate.

[Required(ErrorMessage = "One time password is required.")]
[Length(6, 6, ErrorMessage = "One time password must be exactly six digits.")]
public string Otp { get; init; }

Property Value

string