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:
1 parent
69f95723f1
commit
090d002578
2 files changed
+2
-4
No files matched your search
@@ -123,6 +123,7 @@ const PasswordPanel = () => {
|
|||||||
confirm: "",
|
confirm: "",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
// TODO: Check for other errors?
|
||||||
createToast({
|
createToast({
|
||||||
body: t(
|
body: t(
|
||||||
"passwordPanel.passwordInputIncorrect",
|
"passwordPanel.passwordInputIncorrect",
|
||||||
@@ -185,7 +186,6 @@ const PasswordPanel = () => {
|
|||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors[idToName["edit-current-password"]] ? true : false}
|
error={errors[idToName["edit-current-password"]] ? true : false}
|
||||||
helperText={
|
helperText={
|
||||||
//Only call t() if there is an error to prevent unnecessary localization calls
|
|
||||||
errors[idToName["edit-current-password"]]
|
errors[idToName["edit-current-password"]]
|
||||||
? t(errors[idToName["edit-current-password"]])
|
? t(errors[idToName["edit-current-password"]])
|
||||||
: ""
|
: ""
|
||||||
@@ -216,7 +216,6 @@ const PasswordPanel = () => {
|
|||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors[idToName["edit-new-password"]] ? true : false}
|
error={errors[idToName["edit-new-password"]] ? true : false}
|
||||||
helperText={
|
helperText={
|
||||||
//Only call t() if there is an error to prevent unnecessary localization calls
|
|
||||||
errors[idToName["edit-new-password"]]
|
errors[idToName["edit-new-password"]]
|
||||||
? t(errors[idToName["edit-new-password"]])
|
? t(errors[idToName["edit-new-password"]])
|
||||||
: ""
|
: ""
|
||||||
@@ -247,7 +246,6 @@ const PasswordPanel = () => {
|
|||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors[idToName["edit-confirm-password"]] ? true : false}
|
error={errors[idToName["edit-confirm-password"]] ? true : false}
|
||||||
helperText={
|
helperText={
|
||||||
//Only call t() if there is an error to prevent unnecessary localization calls
|
|
||||||
errors[idToName["edit-confirm-password"]]
|
errors[idToName["edit-confirm-password"]]
|
||||||
? t(errors[idToName["edit-confirm-password"]])
|
? t(errors[idToName["edit-confirm-password"]])
|
||||||
: ""
|
: ""
|
||||||
|
|||||||
@@ -557,7 +557,7 @@
|
|||||||
"newPassword": "New password",
|
"newPassword": "New password",
|
||||||
"enterNewPassword": "Enter your new password",
|
"enterNewPassword": "Enter your new password",
|
||||||
"confirmNewPassword": "Confirm 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",
|
"resetPasswordText": "Reset password",
|
||||||
"sessionExpired": "Your session has expired, please log in again to continue."
|
"sessionExpired": "Your session has expired, please log in again to continue."
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user