Fix user verifying functionality in OTP

revert-70ac1926
tcdlpds@gmail.com 4 years ago
parent e2a143cde0
commit 86912915fd

@ -213,8 +213,8 @@ public class OTPManagementServiceImpl implements OTPManagementService {
String[] superTenantDetails = otpWrapper.getUsername().split("@"); String[] superTenantDetails = otpWrapper.getUsername().split("@");
if (MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(superTenantDetails[1]) || !superTenantDetails[0] if (!MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(superTenantDetails[superTenantDetails.length - 1])
.equals(kmConfig.getAdminUsername())) { || !superTenantDetails[0].equals(kmConfig.getAdminUsername())) {
String msg = "You don't have required permission to create OTP"; String msg = "You don't have required permission to create OTP";
log.error(msg); log.error(msg);
throw new UnAuthorizedException(msg); throw new UnAuthorizedException(msg);

Loading…
Cancel
Save