mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 16:27:46 +00:00
Update low entropy password error message
This commit is contained in:
@@ -238,7 +238,7 @@
|
|||||||
"validate-noNumOrSpecialChar": "at least 1 number or special character",
|
"validate-noNumOrSpecialChar": "at least 1 number or special character",
|
||||||
"validate-repeatedChar": "at most 3 repeated, consecutive characters",
|
"validate-repeatedChar": "at most 3 repeated, consecutive characters",
|
||||||
"validate-escapeChar": "No escape characters allowed.",
|
"validate-escapeChar": "No escape characters allowed.",
|
||||||
"validate-lowEntropy": "Password contains sensitive data.",
|
"validate-lowEntropy": "Password contains personal info.",
|
||||||
"validate-breached": "Password was found in a data breach."
|
"validate-breached": "Password was found in a data breach."
|
||||||
},
|
},
|
||||||
"token": {
|
"token": {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ const checkPassword = async ({ password, setErrors }: CheckPasswordParams): Prom
|
|||||||
validator: (pwd: string) => (
|
validator: (pwd: string) => (
|
||||||
!lowEntropyRegexes.some(regex => regex.test(pwd))
|
!lowEntropyRegexes.some(regex => regex.test(pwd))
|
||||||
),
|
),
|
||||||
errorText: "Password contains sensitive data.",
|
errorText: "Password contains personal info.",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -350,7 +350,7 @@ export default function PasswordReset() {
|
|||||||
<div
|
<div
|
||||||
className={`${passwordErrorLowEntropy ? "text-gray-400" : "text-gray-600"} text-sm`}
|
className={`${passwordErrorLowEntropy ? "text-gray-400" : "text-gray-600"} text-sm`}
|
||||||
>
|
>
|
||||||
Password contains sensitive data.
|
Password contains personal info.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="ml-1 flex flex-row items-center justify-start">
|
<div className="ml-1 flex flex-row items-center justify-start">
|
||||||
|
|||||||
Reference in New Issue
Block a user