From e760d5198701b03d1f9c1cf32709e115cfb9b32c Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Sat, 7 Jun 2025 15:35:31 +0530 Subject: [PATCH] fixed typo error --- Marco.Pms.Services/Controllers/AuthController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marco.Pms.Services/Controllers/AuthController.cs b/Marco.Pms.Services/Controllers/AuthController.cs index 3b69a7c..1b45eb7 100644 --- a/Marco.Pms.Services/Controllers/AuthController.cs +++ b/Marco.Pms.Services/Controllers/AuthController.cs @@ -559,9 +559,9 @@ namespace MarcoBMS.Services.Controllers { // Validate input if (string.IsNullOrWhiteSpace(verifyOTP.Email) || - string.IsNullOrWhiteSpace(verifyOTP.OPT) || - verifyOTP.OPT.Length != 4 || - !verifyOTP.OPT.All(char.IsDigit)) + string.IsNullOrWhiteSpace(verifyOTP.OTP) || + verifyOTP.OTP.Length != 4 || + !verifyOTP.OTP.All(char.IsDigit)) { _logger.LogWarning("OTP login failed - invalid input provided"); return BadRequest(ApiResponse.ErrorResponse("Invalid input", "Please provide a valid 4-digit OTP and Email", 400)); @@ -601,7 +601,7 @@ namespace MarcoBMS.Services.Controllers } // Match OTP - if (otpDetails.OTP != verifyOTP.OPT) + if (otpDetails.OTP != verifyOTP.OTP) { _logger.LogWarning("OTP login failed - incorrect OTP entered for user {UserId}", userId); return Unauthorized(ApiResponse.ErrorResponse("Invalid OTP", "OTP did not match", 401));