mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master' into user-icons
Conflicts: public/src/app.js public/src/client/account/edit.js
This commit is contained in:
		@@ -150,11 +150,15 @@ var	async = require('async'),
 | 
			
		||||
		Password.hash(nconf.get('bcrypt_rounds') || 12, password, callback);
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	User.exists = function(userslug, callback) {
 | 
			
		||||
	User.exists = function(uid, callback) {
 | 
			
		||||
		db.isSortedSetMember('users:joindate', uid, callback);
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	User.existsBySlug = function(userslug, callback) {
 | 
			
		||||
		User.getUidByUserslug(userslug, function(err, exists) {
 | 
			
		||||
			callback(err, !! exists);
 | 
			
		||||
		});
 | 
			
		||||
	};
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	User.getUidByUsername = function(username, callback) {
 | 
			
		||||
		if (!username) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user