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 });