Skip to content

Commit

Permalink
[MOSIP-27547] updated otp userid call (#1127)
Browse files Browse the repository at this point in the history
* [MOSIP-27547] updated otp userid call

Signed-off-by: Aiham Hasan <[email protected]>

* [MOSIP-27547] updated otp userid call

Signed-off-by: Aiham Hasan <[email protected]>

* [MOSIP-27547] updated otp userid call

Signed-off-by: Aiham Hasan <[email protected]>

---------

Signed-off-by: Aiham Hasan <[email protected]>
  • Loading branch information
aihamh authored Oct 26, 2023
1 parent d4c2e1d commit 9057874
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions resident/resident-service/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sample PDF Content
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ public ResponseEntity<MainResponseDTO<AuthNResponse>> sendOTP(
@Validated @RequestBody MainRequestDTO<OtpRequestDTOV2> userOtpRequest) throws ApisResourceAccessException, ResidentServiceCheckedException {
log.debug("ProxyOtpController::sendOTP()::entry");
ResponseEntity<MainResponseDTO<AuthNResponse>> responseEntity;
String userid = null;
String userid = userOtpRequest.getRequest().getUserId();
try {
IdentityDTO identityDTO = identityService.getIdentity(identityService.getResidentIndvidualIdFromSession());
requestValidator.validateProxySendOtpRequest(userOtpRequest, identityDTO);
userid = userOtpRequest.getRequest().getUserId();
responseEntity = proxyOtpService.sendOtp(userOtpRequest, identityDTO);
}
catch (InvalidInputException e) {
Expand Down Expand Up @@ -137,10 +136,9 @@ public ResponseEntity<MainResponseDTO<AuthNResponse>> sendOTP(
public ResponseEntity<MainResponseDTO<AuthNResponse>> validateWithUserIdOtp(
@Validated @RequestBody MainRequestDTO<OtpRequestDTOV3> userIdOtpRequest) {
log.debug("ProxyOtpController::validateWithUserIdOtp()::entry");
String userId = null;
String userId = userIdOtpRequest.getRequest().getUserId();
try {
requestValidator.validateUpdateDataRequest(userIdOtpRequest);
userId = userIdOtpRequest.getRequest().getUserId();
} catch (InvalidInputException e) {
audit.setAuditRequestDto(
EventEnum.getEventEnumWithValue(EventEnum.OTP_VALIDATION_FAILED, userId, "Validate OTP Failed"));
Expand Down

0 comments on commit 9057874

Please sign in to comment.