Skip to content

Node.js based forum software built for the modern web

refactor: already checked inside user.isPasswordValid

Barış Soner Uşaklı635715ef51f2
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 });