From e938d75efc10546a440588d8ea0dcf62dc2073f9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 12 May 2017 09:56:19 -0400 Subject: [PATCH] closes #5676 --- src/controllers/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 09cb5837b2..5ca9c421ad 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -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);