From 233a73c3d8fbe447f797eb66925d0436746e32bc Mon Sep 17 00:00:00 2001
From: Mahesh Maney R <mahesh-maney@users.noreply.github.com>
Date: Fri, 9 Dec 2022 16:36:15 +0530
Subject: [PATCH] uncommenting verifyotp code commented by Saroj <ManeyMR>.

---
 .../java/com/tarento/retail/service/impl/UserServiceImpl.java | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/main/java/com/tarento/retail/service/impl/UserServiceImpl.java b/src/main/java/com/tarento/retail/service/impl/UserServiceImpl.java
index 735935c..91ca13b 100644
--- a/src/main/java/com/tarento/retail/service/impl/UserServiceImpl.java
+++ b/src/main/java/com/tarento/retail/service/impl/UserServiceImpl.java
@@ -564,9 +564,6 @@ public class UserServiceImpl implements UserDetailsService, UserService {
 
 	@Override
 	public Boolean validateUserOTP(String username, String otp) {
-		
-		return Boolean.TRUE;
-		/*
 		try {
 			LoginAuthentication loginAuth = Cache.getUserAuthData(username);
 			if (loginAuth != null && loginAuth.getOtpExpiryDate() > DateUtil.getCurrentTimestamp()
@@ -577,7 +574,6 @@ public class UserServiceImpl implements UserDetailsService, UserService {
 			LOGGER.error(String.format(Constants.EXCEPTION_METHOD, "validateUserOTP", e.getMessage()));
 		}
 		return Boolean.FALSE;
-		*/
 	}
 
 	@Override
-- 
GitLab