mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-14 10:37:45 +01:00
refactor: already checked inside user.isPasswordValid
This commit is contained in:
@@ -102,10 +102,6 @@ authenticationController.register = async function (req, res) {
|
|||||||
throw new Error('[[user:change-password-error-match]]');
|
throw new Error('[[user:change-password-error-match]]');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userData.password.length > 512) {
|
|
||||||
throw new Error('[[error:password-too-long]]');
|
|
||||||
}
|
|
||||||
|
|
||||||
user.isPasswordValid(userData.password);
|
user.isPasswordValid(userData.password);
|
||||||
|
|
||||||
await plugins.hooks.fire('filter:password.check', { password: userData.password, uid: 0, userData: userData });
|
await plugins.hooks.fire('filter:password.check', { password: userData.password, uid: 0, userData: userData });
|
||||||
|
|||||||
Reference in New Issue
Block a user