Skip to content

Commit

Permalink
Merge pull request #21 from project-sunbird/code-review-rework-SB-3412
Browse files Browse the repository at this point in the history
Issue #SB-3412 feat:user enhancement
  • Loading branch information
bvinayakumar authored May 28, 2018
2 parents 49e2ab0 + ac90f67 commit f7ce815
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 f7ce815

Please sign in to comment.