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:
llpingll
2026-02-03 16:44:15 +00:00
parent 69f95723f1
commit 090d002578
2 changed files with 2 additions and 4 deletions
@@ -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"]])
: ""
+1 -1
View File
@@ -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."
},