mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
closes #3607
This commit is contained in:
@@ -52,11 +52,7 @@ authenticationController.register = function(req, res, next) {
|
||||
return next(new Error('[[error:username-too-long'));
|
||||
}
|
||||
|
||||
if (!userData.password || userData.password.length < meta.config.minimumPasswordLength) {
|
||||
return next(new Error('[[user:change_password_error_length]]'));
|
||||
}
|
||||
|
||||
next();
|
||||
user.isPasswordValid(userData.password, next);
|
||||
},
|
||||
function(next) {
|
||||
plugins.fireHook('filter:register.check', {req: req, res: res, userData: userData}, next);
|
||||
|
||||
Reference in New Issue
Block a user