From 2f6c9d75f382c6e19ac8f8e35c9c229e0eac68ab Mon Sep 17 00:00:00 2001 From: Amir Ghezelbash Date: Tue, 25 Jul 2023 17:41:46 +0330 Subject: [PATCH] password copy --- src/i18n/en-US.json | 2 +- src/script/components/Modals/PrimaryModal/PrimaryModal.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/i18n/en-US.json b/src/i18n/en-US.json index 00a23e253e7..f36c51a4641 100644 --- a/src/i18n/en-US.json +++ b/src/i18n/en-US.json @@ -850,7 +850,7 @@ "modalGuestLinkJoinConfirmPlaceholder": "Confirm your password", "modalGuestLinkJoinLabel": "Set password", "modalGuestLinkJoinConfirmLabel": "Confirm password", - "modalGuestLinkJoinHelperText": "Must have at least one: uppercase letter, lowercase letter, number, symbol", + "modalGuestLinkJoinHelperText": "Use at least {{minPasswordLength}} characters, with one lowercase letter, one capital letter, a number, and a special character.", "modalConversationJoinConfirm": "Join", "modalConversationJoinFullHeadline": "You could not join the conversation", "modalConversationJoinFullMessage": "The conversation is full.", diff --git a/src/script/components/Modals/PrimaryModal/PrimaryModal.tsx b/src/script/components/Modals/PrimaryModal/PrimaryModal.tsx index f57f8dea255..30eab9de510 100644 --- a/src/script/components/Modals/PrimaryModal/PrimaryModal.tsx +++ b/src/script/components/Modals/PrimaryModal/PrimaryModal.tsx @@ -235,7 +235,9 @@ export const PrimaryModalComponent: FC = () => { wrapperCSS={guestLinkPasswordInputStyles} placeholder={t('modalGuestLinkJoinPlaceholder')} label={t('modalGuestLinkJoinLabel')} - helperText={t('modalGuestLinkJoinHelperText')} + helperText={t('modalGuestLinkJoinHelperText', { + minPasswordLength: Config.getConfig().MINIMUM_PASSWORD_LENGTH.toString(), + })} id="modal_pswd_confiramtion" className="modal__input" type="password"