From 7583bf8dadccb71bf9ec7cdf204d7f40c30b7dea Mon Sep 17 00:00:00 2001 From: Arjita Date: Fri, 18 Aug 2023 11:37:11 +0200 Subject: [PATCH] fix: add backup password hint (#15613) * fix: self leave conversation shouldn't be archieved automatically * fix: backup password hint --- src/i18n/en-US.json | 1 + src/script/components/Modals/PrimaryModal/PrimaryModal.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/i18n/en-US.json b/src/i18n/en-US.json index 7085607cabb..0e8c52f7af8 100644 --- a/src/i18n/en-US.json +++ b/src/i18n/en-US.json @@ -230,6 +230,7 @@ "backupImportIncompatibleErrorHeadline": "Wrong backup", "backupImportIncompatibleErrorSecondary": "You cannot restore history from a different account.", "backupImportPasswordErrorHeadline": "Wrong Password", + "backupPasswordHint": "Use at least {{minPasswordLength}} characters, with one lowercase letter, one capital letter, a number, and a special character.", "backupImportPasswordErrorSecondary": "Please verify your input and try again", "backupImportProgressHeadline": "Preparing…", "backupImportProgressSecondary": "Restoring history · {{processed}} of {{total}} — {{progress}}%", diff --git a/src/script/components/Modals/PrimaryModal/PrimaryModal.tsx b/src/script/components/Modals/PrimaryModal/PrimaryModal.tsx index 39456f5ff6c..0540616a2b9 100644 --- a/src/script/components/Modals/PrimaryModal/PrimaryModal.tsx +++ b/src/script/components/Modals/PrimaryModal/PrimaryModal.tsx @@ -231,7 +231,7 @@ export const PrimaryModalComponent: FC = () => { } autoComplete="password" pattern=".{2,64}" - helperText={t('accountForm.passwordHelp', { + helperText={t('backupPasswordHint', { minPasswordLength: Config.getConfig().NEW_PASSWORD_MINIMUM_LENGTH.toString(), })} />