Unverified Commit effd80a5 authored by Mahesh Maney R's avatar Mahesh Maney R Committed by GitHub
Browse files

Merge pull request #4 from UPHRH-platform/sessionTimeout

uncommenting verifyotp code commented by Saroj <ManeyMR>.
Showing with 0 additions and 4 deletions
+0 -4
...@@ -564,9 +564,6 @@ public class UserServiceImpl implements UserDetailsService, UserService { ...@@ -564,9 +564,6 @@ public class UserServiceImpl implements UserDetailsService, UserService {
@Override @Override
public Boolean validateUserOTP(String username, String otp) { public Boolean validateUserOTP(String username, String otp) {
return Boolean.TRUE;
/*
try { try {
LoginAuthentication loginAuth = Cache.getUserAuthData(username); LoginAuthentication loginAuth = Cache.getUserAuthData(username);
if (loginAuth != null && loginAuth.getOtpExpiryDate() > DateUtil.getCurrentTimestamp() if (loginAuth != null && loginAuth.getOtpExpiryDate() > DateUtil.getCurrentTimestamp()
...@@ -577,7 +574,6 @@ public class UserServiceImpl implements UserDetailsService, UserService { ...@@ -577,7 +574,6 @@ public class UserServiceImpl implements UserDetailsService, UserService {
LOGGER.error(String.format(Constants.EXCEPTION_METHOD, "validateUserOTP", e.getMessage())); LOGGER.error(String.format(Constants.EXCEPTION_METHOD, "validateUserOTP", e.getMessage()));
} }
return Boolean.FALSE; return Boolean.FALSE;
*/
} }
@Override @Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment