Skip to content

Commit

Permalink
MOSIP-31132 Update RegistrationService.java
Browse files Browse the repository at this point in the history
Signed-off-by: ase-101 <[email protected]>
  • Loading branch information
ase-101 authored Jun 10, 2024
1 parent 18869e1 commit 348b413
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public VerifyChallengeResponse verifyChallenge(VerifyChallengeRequest verifyChal
otpChallengeInfo.get().getChallenge());
if(!challengeHash.equals(transaction.getChallengeHash())) {
transaction.incrementVerificationAttempt();
cacheUtilService.createUpdateChallengeGeneratedTransaction(transactionId, transaction);
log.error("Transaction {} : challenge not match", transactionId);
throw new ChallengeFailedException();
}
Expand Down

0 comments on commit 348b413

Please sign in to comment.