Skip to content

Commit

Permalink
Issue #SB-3412 feat:user enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
AMIT KUMAR committed May 28, 2018
1 parent 49e2ab0 commit ac90f67
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions service/app/controllers/usermanagement/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ public Promise<Result> 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());
Expand Down Expand Up @@ -90,11 +85,6 @@ public Promise<Result> updateUserProfile() {
HashMap<String, Object> 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());
Expand Down

0 comments on commit ac90f67

Please sign in to comment.