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:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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('');
|
||||
|
Reference in New Issue
Block a user