mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	closes #5907
This commit is contained in:
		| @@ -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]]')); | ||||
| 			} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user