mirror of
				https://github.com/Lomanic/presence-button-web
				synced 2025-10-30 18:55:37 +00:00 
			
		
		
		
	🛳🍙 Checkpoint
./server.js:933874/84
This commit is contained in:
		
							parent
							
								
									d3c87768d6
								
							
						
					
					
						commit
						2f679e086b
					
				| @ -47,7 +47,8 @@ app.get("/status", (req, res) => { | ||||
| 
 | ||||
|   // parse login and password from headers
 | ||||
|   const b64auth = (req.headers.authorization || "").split(" ")[1] || ""; | ||||
|   const [_, login, password] = new Buffer(b64auth, 'base64').toString().match(/(.*):(.*)/) || []; // slightly modified as
 | ||||
|   const [_, login, password] = new Buffer(b64auth, 'base64').toString().match(/(.*):(.*)/) || []; // slightly modified as we use : in username
 | ||||
| 
 | ||||
|   if ( | ||||
|     !login || | ||||
|     !password || | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user