mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	a username cookie is updated and will be available in all subsequent requests. THIS IS NOT AUTHENTICATION! it is not safe and is only implemented as a first edition. It does how ever solve the issue where we are not able to see who canged what.
		
			
				
	
	
		
			5 lines
		
	
	
		
			112 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
		
			112 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| function extractUsername(req) {
 | |
|   return req.cookies.username || "unknown";
 | |
| }
 | |
| module.exports = extractUsername;
 |