Skip to content

Commit

Permalink
fix: 2fa activate message changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gobeam committed Jan 20, 2022
1 parent 5ca771c commit 6b6f0fd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/containers/UserAccount/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,9 @@ export default defineMessages({
id: `${scope}.toggleTwoFaSuccess`,
defaultMessage: 'Two factor authentication setting updated successfully!',
},
twoFaActivateCheck: {
id: `${scope}.twoFaActivateCheck`,
defaultMessage:
'Two factor authentication has been enabled, please check your mail for further process to set OTP!',
},
});
4 changes: 3 additions & 1 deletion app/containers/UserAccount/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ export function* handleUpdateTwoFactorStatus() {
yield put(asyncEndAction());
return yield showMessage({
type: 'success',
message: messages.toggleTwoFaSuccess,
message: data.isTwoFAEnabled
? messages.twoFaActivateCheck
: messages.toggleTwoFaSuccess,
translate: true,
id: uuid(),
});
Expand Down
1 change: 1 addition & 0 deletions app/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
"containers.UserAccount.activateOtpConfirm": "Are you sure you want to activate Two Factor Authentication?",
"containers.UserAccount.deactivateOtpConfirm": "Are you sure you want to deactivate Two Factor Authentication?",
"containers.UserAccount.toggleTwoFaSuccess": "Two factor authentication setting updated successfully!",
"containers.UserAccount.twoFaActivateCheck": "Two factor authentication has been enabled, please check your mail for further process to set OTP!",

"containers.Dashboard.totalUser": "Total User",
"containers.Dashboard.activeUser": "Active User",
Expand Down
1 change: 1 addition & 0 deletions app/i18n/ne.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@
"containers.UserAccount.activateOtpConfirm": "के तपाईं दुई कारक प्रमाणीकरण सक्रिय गर्न निश्चित हुनुहुन्छ?",
"containers.UserAccount.deactivateOtpConfirm": "के तपाइँ निश्चित हुनुहुन्छ कि तपाइँ दुई कारक प्रमाणीकरण निष्क्रिय गर्न चाहनुहुन्छ?",
"containers.UserAccount.toggleTwoFaSuccess": "दुई कारक प्रमाणीकरण सेटिङ सफलतापूर्वक अद्यावधिक गरियो!",
"containers.UserAccount.twoFaActivateCheck": "दुई कारक प्रमाणीकरण सक्षम गरिएको छ, OTP सेट गर्न थप प्रक्रियाको लागि कृपया आफ्नो मेल जाँच गर्नुहोस्!",

"containers.Dashboard.totalUser": "कुल प्रयोगकर्ता",
"containers.Dashboard.activeUser": "सक्रिय प्रयोगकर्ता",
Expand Down

0 comments on commit 6b6f0fd

Please sign in to comment.