Skip to content

Commit

Permalink
ASUB-8593 Fixing password requirements (#2191)
Browse files Browse the repository at this point in the history
* fixing password requirements
  • Loading branch information
LauraPinilla authored Aug 12, 2024
1 parent 957d9ac commit bc8933f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions blocks/identity-block/features/signup/default.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -80,7 +80,7 @@ const SignUp = ({ customFields, arcSite }) => {
const {
pwLowercase = 0,
pwMinLength = 0,
pwPwNumbers = 0,
pwNumbers = 0,
pwSpecialCharacters = 0,
pwUppercase = 0,
status,
Expand All @@ -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: {
Expand Down Expand Up @@ -183,7 +183,7 @@ const SignUp = ({ customFields, arcSite }) => {
validationPattern={validatePasswordPattern(
pwLowercase,
pwMinLength,
pwPwNumbers,
pwNumbers,
pwSpecialCharacters,
pwUppercase,
)}
Expand Down
2 changes: 1 addition & 1 deletion blocks/identity-block/intl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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).",
Expand Down

0 comments on commit bc8933f

Please sign in to comment.