diff --git a/service/app/controllers/usermanagement/UserController.java b/service/app/controllers/usermanagement/UserController.java index 89a5836966..6a3be6d38b 100644 --- a/service/app/controllers/usermanagement/UserController.java +++ b/service/app/controllers/usermanagement/UserController.java @@ -48,11 +48,6 @@ public Promise createUser() { " get user registration request data = " + requestData, LoggerEnum.INFO.name()); Request reqObj = (Request) mapper.RequestMapper.mapRequest(requestData, Request.class); UserRequestValidator.validateCreateUser(reqObj); - - if (StringUtils.isBlank((String) reqObj.getRequest().get(JsonKey.PROVIDER))) { - reqObj.getRequest().put(JsonKey.EMAIL_VERIFIED, false); - reqObj.getRequest().put(JsonKey.PHONE_VERIFIED, false); - } reqObj.setOperation(ActorOperations.CREATE_USER.getValue()); reqObj.setRequestId(ExecutionContext.getRequestId()); reqObj.setEnv(getEnvironment()); @@ -90,11 +85,6 @@ public Promise updateUserProfile() { HashMap innerMap = new HashMap<>(); innerMap.put(JsonKey.USER, reqObj.getRequest()); - if (StringUtils.isBlank((String) reqObj.getRequest().get(JsonKey.PROVIDER))) { - reqObj.getRequest().put(JsonKey.EMAIL_VERIFIED, false); - reqObj.getRequest().put(JsonKey.PHONE_VERIFIED, false); - } - innerMap.put(JsonKey.REQUESTED_BY, ctx().flash().get(JsonKey.USER_ID)); reqObj.setRequest(innerMap); return actorResponseHandler(getActorRef(), reqObj, timeout, null, request());