Skip to content

Commit

Permalink
Mosip 31517 OTP controller changes (#1189)
Browse files Browse the repository at this point in the history
* MOSIP-31517 On demnad changes move to release

Signed-off-by: Neha Farheen <[email protected]>

* MOSIP-31517 On demnad changes move to release test case changes

Signed-off-by: Neha Farheen <[email protected]>

* Changes done

Signed-off-by: Neha Farheen <[email protected]>

* otp controller changes

Signed-off-by: Neha Farheen <[email protected]>

---------

Signed-off-by: Neha Farheen <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
  • Loading branch information
Neha2365 and Neha Farheen authored Feb 9, 2024
1 parent f85b208 commit 524fadf
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 524fadf

Please sign in to comment.