Update low entropy password error message

This commit is contained in:
Tuan Dang
2023-08-30 21:27:31 +01:00
parent f21eb3b7c8
commit e770bdde24
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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.",
}, },
]; ];
+1 -1
View File
@@ -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">