mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Not setting name on empty input
This commit is contained in:
		@@ -162,6 +162,9 @@ function namechange(data, guid, socket, tried) {
 | 
			
		||||
                new_password = Functions.decrypt_string(socket.zoff_id, data.new_password);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        if(name == "") {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        var password = Functions.decrypt_string(socket.zoff_id, pw);
 | 
			
		||||
        db.collection("registered_users").find({"_id": name.toLowerCase()}, function(err, docs) {
 | 
			
		||||
            var accepted_password = false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user