mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
closes #5676
This commit is contained in:
@@ -52,7 +52,7 @@ authenticationController.register = function (req, res) {
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user