mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	added missing "return" when a user creation doesn't pass all server-side
checks...
This commit is contained in:
		| @@ -37,7 +37,7 @@ var utils = require('./../public/src/utils.js'), | ||||
| 				}); | ||||
| 			} | ||||
| 		], function(err, results) { | ||||
| 			if (err) callback(err, 0);	// FIXME: Maintaining the 0 for backwards compatibility. Do we need this? | ||||
| 			if (err) return callback(err, 0);	// FIXME: Maintaining the 0 for backwards compatibility. Do we need this? | ||||
|  | ||||
| 			RDB.incr('global:next_user_id', function(err, uid) { | ||||
| 				RDB.handle(err); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user