This commit is contained in:
Julian Lam
2017-05-12 09:56:19 -04:00
parent 45949be029
commit e938d75efc

View File

@@ -52,7 +52,7 @@ authenticationController.register = function (req, res) {
} }
if (userData.username.length > meta.config.maximumUsernameLength) { if (userData.username.length > meta.config.maximumUsernameLength) {
return next(new Error('[[error:username-too-long')); return next(new Error('[[error:username-too-long]]'));
} }
user.isPasswordValid(userData.password, next); user.isPasswordValid(userData.password, next);