This commit is contained in:
Baris Usakli
2017-09-01 18:40:34 -04:00
parent bf79857b7d
commit 1358a89305
3 changed files with 60 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ authenticationController.register = function (req, res) {
return next(new Error('[[error:invalid-email]]'));
}
if (!userData.username || userData.username.length < meta.config.minimumUsernameLength) {
if (!userData.username || userData.username.length < meta.config.minimumUsernameLength || utils.slugify(userData.username).length < meta.config.minimumUsernameLength) {
return next(new Error('[[error:username-too-short]]'));
}