Update server/server.js

This commit is contained in:
Frank Elsinga 2026-01-18 15:51:43 +01:00 committed by GitHub
parent e5f629041f
commit d0bdcc575a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1420,7 +1420,7 @@ let needSetup = false;
const passwordValidation = await validatePassword(password.newPassword, true); const passwordValidation = await validatePassword(password.newPassword, true);
if (!passwordValidation.ok) { if (!passwordValidation.ok) {
throw new TranslatableError("passwordTooWeak"); throw new TranslatableError("passwordTooShort");
} }
let user = await doubleCheckPassword(socket, password.currentPassword); let user = await doubleCheckPassword(socket, password.currentPassword);