This commit is contained in:
barisusakli
2015-09-14 15:50:02 -04:00
parent b660eec67f
commit 30d087cbd3
4 changed files with 17 additions and 7 deletions

View File

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