Skip to content

Commit

Permalink
otp controller changes
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Farheen <[email protected]>
  • Loading branch information
Neha Farheen committed Feb 9, 2024
1 parent 87c9325 commit 03418e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ public OtpResponseDTO generateOTP(@Valid @RequestBody OtpRequestDTO otpRequestDt
Optional<PartnerDTO> partner = partnerService.getPartner(partnerId, otpRequestDto.getMetadata());
AuthTransactionBuilder authTxnBuilder = authTransactionHelper
.createAndSetAuthTxnBuilderMetadataToRequest(otpRequestDto, !isPartnerReq, partner);
String idvidHash = securityManager.hash(otpRequestDto.getIndividualId());

try {
String idvidHash = securityManager.hash(otpRequestDto.getIndividualId());
String idType = Objects.nonNull(otpRequestDto.getIndividualIdType()) ? otpRequestDto.getIndividualIdType()
: idTypeUtil.getIdType(otpRequestDto.getIndividualId()).getType();
otpRequestDto.setIndividualIdType(idType);
Expand Down

0 comments on commit 03418e4

Please sign in to comment.