mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	@@ -302,6 +302,8 @@ in your Node-RED user directory (${RED.settings.userDir}).
 | 
			
		||||
                    // var cred = ""
 | 
			
		||||
                    if (this.credentials.user || this.credentials.password) {
 | 
			
		||||
                        // cred = `${this.credentials.user}:${this.credentials.password}`;
 | 
			
		||||
                        if (this.credentials.user === undefined) { this.credentials.user = ""}
 | 
			
		||||
                        if (this.credentials.password === undefined) { this.credentials.password = ""}
 | 
			
		||||
                        opts.headers.Authorization = "Basic " + Buffer.from(`${this.credentials.user}:${this.credentials.password}`).toString("base64");
 | 
			
		||||
                    }
 | 
			
		||||
                    // build own basic auth header
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user