Skip to content

Commit

Permalink
MOSIP-35492 (#345)
Browse files Browse the repository at this point in the history
* MOSIP-35492

Signed-off-by: Sreang Rathanak <[email protected]>

* Add translation

Signed-off-by: Sreang Rathanak <[email protected]>

---------

Signed-off-by: Sreang Rathanak <[email protected]>
Co-authored-by: Sreang Rathanak <[email protected]>
  • Loading branch information
rathanak-0080 and Sreang Rathanak authored Sep 11, 2024
1 parent 6880430 commit c8ac611
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,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
1 change: 1 addition & 0 deletions signup-ui/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
"identifier_blocked": "User is blocked. Please try again after 5 minutes.",
"unsupported_purpose": "Invalid Request",
"server_unreachable": "We are unable to process your request, please try again later.",
"too_many_verify_attempts": "Request verify OTP too many attempts",
"otp_notification_failed": "Failed to send the otp",
"IDR-IDC-001": "Missing Input Parameter",
"IDR-IDC-002": "Invalid Input Parameter",
Expand Down
3 changes: 2 additions & 1 deletion signup-ui/public/locales/km.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@
"knowledgebase_mismatch": "លេខទូរស័ព្ទ ឬឈ្មោះមិនត្រឹមត្រូវ។ សូមបញ្ចូលលេខទូរស័ព្ទនិងឈ្មោះដែលបានចុះឈ្មោះ។",
"identifier_blocked": "អ្នកប្រើប្រាស់ត្រូវបានទប់ស្កាត់។ សូមព្យាយាមម្តងទៀតនៅ 5 នាទីក្រោយ។",
"unsupported_purpose": "សំណើមិនត្រឹមត្រូវ",
"server_unreachable": "យើងមិនអាចបន្តសំណើរបស់អ្នកឡើយ។ សូមព្យាយាមម្តងទៀតនៅពេលក្រោយ។",
"server_unreachable": "ស្នើសុំបញ្ជាក់ លេខកូដសម្ងាត់ (OTP) ច្រើនដងពេក",
"too_many_verify_attempts": "្នើសុំ លេខកូដសម្ងាត់ (OTP) ច្រើនដងពេក",
"otp_notification_failed": "បរាជ័យក្នុងការផ្ញើ otp",
"IDR-IDC-001": "រកមិនឃើញតម្លៃដែលបានបញ្ចូល",
"IDR-IDC-002": "តម្លៃដែលបានបញ្ចូលមិនត្រឹមត្រូវ",
Expand Down
5 changes: 3 additions & 2 deletions signup-ui/src/resources.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ interface Resources {
signup_discontinue_prompt: string;
reset_password_discontinue_prompt: string;
captcha_required: string;
offline_polling_prompt: string,
online_polling_prompt: string,
offline_polling_prompt: string;
online_polling_prompt: string;
eykc_loading: {
header: string;
description: string;
Expand Down Expand Up @@ -150,6 +150,7 @@ interface Resources {
unsupported_purpose: string;
otp_notification_failed: string;
server_unreachable: string;
too_many_verify_attempts: string;
};
};
}
Expand Down

0 comments on commit c8ac611

Please sign in to comment.