From 635715ef51f2b750dd2304d4b2561d5e3c3b00a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 19 Jan 2026 22:16:37 -0500 Subject: [PATCH] refactor: already checked inside user.isPasswordValid --- src/controllers/authentication.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 5cd6ee0d24..6de6202047 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -102,10 +102,6 @@ authenticationController.register = async function (req, res) { throw new Error('[[user:change-password-error-match]]'); } - if (userData.password.length > 512) { - throw new Error('[[error:password-too-long]]'); - } - user.isPasswordValid(userData.password); await plugins.hooks.fire('filter:password.check', { password: userData.password, uid: 0, userData: userData });