mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Added toggle footer bar option in webapp.
This commit is contained in:
		
							parent
							
								
									2642ab6d05
								
							
						
					
					
						commit
						8d27a02362
					
				
					 16 changed files with 226 additions and 33 deletions
				
			
		| 
						 | 
				
			
			@ -1642,8 +1642,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
 | 
			
		|||
    // Handle a post request on the root
 | 
			
		||||
    function handleRootPostRequest(req, res) {
 | 
			
		||||
        const domain = checkUserIpAddress(req, res);
 | 
			
		||||
        if (domain == null) { parent.debug('web', 'handleTermsRequest: Bad domain'); res.end('Not Found'); return; }
 | 
			
		||||
        if ((domain.loginkey != null) && (domain.loginkey.indexOf(req.query.key) == -1)) { res.end('Not Found'); return; } // Check 3FA URL key
 | 
			
		||||
        if (domain == null) { parent.debug('web', 'handleTermsRequest: Bad domain'); res.end("Not Found"); return; }
 | 
			
		||||
        if ((domain.loginkey != null) && (domain.loginkey.indexOf(req.query.key) == -1)) { res.end("Not Found"); return; } // Check 3FA URL key
 | 
			
		||||
        parent.debug('web', 'handleRootPostRequest, action: ' + req.body.action);
 | 
			
		||||
       
 | 
			
		||||
        switch (req.body.action) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue