mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	dont allow empty userslugs to register
This commit is contained in:
		| @@ -31,7 +31,7 @@ var utils = require('./../public/src/utils.js'), | ||||
| 				} | ||||
| 			}, | ||||
| 			function(next) { | ||||
| 				next(!utils.isUserNameValid(username) ? new Error('Invalid Username!') : null); | ||||
| 				next((!utils.isUserNameValid(username) || !userslug) ? new Error('Invalid Username!') : null); | ||||
| 			}, | ||||
| 			function(next) { | ||||
| 				if (password !== undefined) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user