diff --git a/blocks/identity-block/features/signup/default.jsx b/blocks/identity-block/features/signup/default.jsx index eec5d5d65..1d77d3c86 100644 --- a/blocks/identity-block/features/signup/default.jsx +++ b/blocks/identity-block/features/signup/default.jsx @@ -48,13 +48,13 @@ const SignUp = ({ customFields, arcSite }) => { const getConfig = async () => { await Identity.getConfig() .then((response) => { - const { pwLowercase, pwMinLength, pwPwNumbers, pwSpecialCharacters, pwUppercase } = + const { pwLowercase, pwMinLength, pwNumbers, pwSpecialCharacters, pwUppercase } = response; setPasswordRequirements({ pwLowercase, pwMinLength, - pwPwNumbers, + pwNumbers, pwSpecialCharacters, pwUppercase, status: "success", @@ -80,7 +80,7 @@ const SignUp = ({ customFields, arcSite }) => { const { pwLowercase = 0, pwMinLength = 0, - pwPwNumbers = 0, + pwNumbers = 0, pwSpecialCharacters = 0, pwUppercase = 0, status, @@ -106,9 +106,9 @@ const SignUp = ({ customFields, arcSite }) => { }), }, numbers: { - value: pwPwNumbers, + value: pwNumbers, message: phrases.t("identity-block.password-requirements-numbers", { - requirementCount: pwPwNumbers, + requirementCount: pwNumbers, }), }, specialCharacters: { @@ -183,7 +183,7 @@ const SignUp = ({ customFields, arcSite }) => { validationPattern={validatePasswordPattern( pwLowercase, pwMinLength, - pwPwNumbers, + pwNumbers, pwSpecialCharacters, pwUppercase, )} diff --git a/blocks/identity-block/intl.json b/blocks/identity-block/intl.json index babac976c..4a253df87 100644 --- a/blocks/identity-block/intl.json +++ b/blocks/identity-block/intl.json @@ -1565,7 +1565,7 @@ "bo": "མ་མཐར་ཡང་ཡི་གེ་%{requirementCount}དགོས།", "de": "Must have at least %{requirementCount} letter(s).", "el": "Πρέπει να διαθέτει τουλάχιστον %{requirementCount} γράμμα/τα.", - "en": "Must have at least %{requirementCount} letter(s).", + "en": "Must have at least %{requirementCount} lowercase character(s).", "es": "Must have at least %{requirementCount} letter(s).", "fr": "Must have at least %{requirementCount} letter(s).", "id": "Harus terdiri dari setidaknya %{requirementCount} huruf.", diff --git a/locale/en.json b/locale/en.json index 25fedd5b6..87d546ffa 100644 --- a/locale/en.json +++ b/locale/en.json @@ -162,7 +162,7 @@ "identity-block.password-placeholder": "**********", "identity-block.password-requirements": "Please enter a valid password.", "identity-block.password-requirements-characters": "Must be at least %{requirementCount} total characters.", - "identity-block.password-requirements-lowercase": "Must have at least %{requirementCount} letter(s).", + "identity-block.password-requirements-lowercase": "Must have at least %{requirementCount} lowercase character(s).", "identity-block.password-requirements-numbers": "Must have at least %{requirementCount} number(s).", "identity-block.password-requirements-special": "Must have at least %{requirementCount} special character(s).", "identity-block.password-requirements-uppercase": "Must have at least %{requirementCount} uppercase character(s).",