Update server/server.js
This commit is contained in:
parent
e5f629041f
commit
d0bdcc575a
@ -1420,7 +1420,7 @@ let needSetup = false;
|
||||
|
||||
const passwordValidation = await validatePassword(password.newPassword, true);
|
||||
if (!passwordValidation.ok) {
|
||||
throw new TranslatableError("passwordTooWeak");
|
||||
throw new TranslatableError("passwordTooShort");
|
||||
}
|
||||
|
||||
let user = await doubleCheckPassword(socket, password.currentPassword);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user