mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-23 02:29:30 -05:00
Add comment to PasswordPanel to encourage additional error handling and remove helperText comments | Remove explicit special characters from en.json
This commit is contained in:
@@ -123,6 +123,7 @@ const PasswordPanel = () => {
|
||||
confirm: "",
|
||||
});
|
||||
} else {
|
||||
// TODO: Check for other errors?
|
||||
createToast({
|
||||
body: t(
|
||||
"passwordPanel.passwordInputIncorrect",
|
||||
@@ -185,7 +186,6 @@ const PasswordPanel = () => {
|
||||
onChange={handleChange}
|
||||
error={errors[idToName["edit-current-password"]] ? true : false}
|
||||
helperText={
|
||||
//Only call t() if there is an error to prevent unnecessary localization calls
|
||||
errors[idToName["edit-current-password"]]
|
||||
? t(errors[idToName["edit-current-password"]])
|
||||
: ""
|
||||
@@ -216,7 +216,6 @@ const PasswordPanel = () => {
|
||||
onChange={handleChange}
|
||||
error={errors[idToName["edit-new-password"]] ? true : false}
|
||||
helperText={
|
||||
//Only call t() if there is an error to prevent unnecessary localization calls
|
||||
errors[idToName["edit-new-password"]]
|
||||
? t(errors[idToName["edit-new-password"]])
|
||||
: ""
|
||||
@@ -247,7 +246,6 @@ const PasswordPanel = () => {
|
||||
onChange={handleChange}
|
||||
error={errors[idToName["edit-confirm-password"]] ? true : false}
|
||||
helperText={
|
||||
//Only call t() if there is an error to prevent unnecessary localization calls
|
||||
errors[idToName["edit-confirm-password"]]
|
||||
? t(errors[idToName["edit-confirm-password"]])
|
||||
: ""
|
||||
|
||||
@@ -557,7 +557,7 @@
|
||||
"newPassword": "New password",
|
||||
"enterNewPassword": "Enter your new password",
|
||||
"confirmNewPassword": "Confirm new password",
|
||||
"passwordRequirements": "New password must contain at least 8 characters and must have at least one uppercase letter, one lowercase letter, one number and one special character (!?@#$%^&*()-_=+[]{}|;:'\",./\\~`).",
|
||||
"passwordRequirements": "New password must contain at least 8 characters and must have at least one uppercase letter, one lowercase letter, one number and one special character.",
|
||||
"resetPasswordText": "Reset password",
|
||||
"sessionExpired": "Your session has expired, please log in again to continue."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user