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