Class ValidateOtpCommand
public class ValidateOtpCommand : ICommand<string>, ICommand
- Inheritance
-
objectValidateOtpCommand
- Implements
-
ICommand<string>
Properties
BypassOtp
Indicates whether OTP validation should be bypassed.
public bool BypassOtp { get; init; }
Property Value
- bool
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