refactor: already checked inside user.isPasswordValid

This commit is contained in:
Barış Soner Uşaklı
2026-01-19 22:16:37 -05:00
parent f90c86492a
commit 635715ef51

View File

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