1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

change error message (#7193)

This commit is contained in:
Michael An
2024-12-16 12:15:11 +08:00
committed by GitHub
parent 156de7fd6d
commit 034d756f06
4 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ const UserSetPassword = ({ toggle }) => {
return;
}
if (!validatePassword(password)) {
setErrorMessage(gettext('Insufficient password strength'));
setErrorMessage(gettext('Password strength should be strong or very strong'));
return;
}

View File

@@ -39,7 +39,7 @@ const UserUpdatePassword = ({ toggle }) => {
setErrorMessage(gettext('New password cannot be the same as old password'));
}
if (!validatePassword(newPassword)) {
setErrorMessage(gettext('Insufficient password strength'));
setErrorMessage(gettext('Password strength should be strong or very strong'));
return;
}
setErrorMessage('');