|  | @ -26,7 +26,7 @@ console.log("Importing this project modules"); | 
			
		
	
		
		
			
				
					|  |  | debug("Importing Monitor"); |  |  | debug("Importing Monitor"); | 
			
		
	
		
		
			
				
					|  |  | const Monitor = require("./model/monitor"); |  |  | const Monitor = require("./model/monitor"); | 
			
		
	
		
		
			
				
					|  |  | debug("Importing Settings"); |  |  | debug("Importing Settings"); | 
			
		
	
		
		
			
				
					
					|  |  | const { getSettings, setSettings } = require("./util-server"); |  |  | const { getSettings, setSettings, setting } = require("./util-server"); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | debug("Importing Notification"); |  |  | debug("Importing Notification"); | 
			
		
	
		
		
			
				
					|  |  | const { Notification } = require("./notification"); |  |  | const { Notification } = require("./notification"); | 
			
		
	
		
		
			
				
					|  |  | debug("Importing Database"); |  |  | debug("Importing Database"); | 
			
		
	
	
		
		
			
				
					|  | @ -114,6 +114,11 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString(); | 
			
		
	
		
		
			
				
					|  |  |             socket.emit("setup") |  |  |             socket.emit("setup") | 
			
		
	
		
		
			
				
					|  |  |         } |  |  |         } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         if (await setting("disableAuth")) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             console.log("Disabled Auth: auto login to admin") | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             await afterLogin(socket, await R.findOne("user", " username = 'admin' ")) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         socket.on("disconnect", () => { |  |  |         socket.on("disconnect", () => { | 
			
		
	
		
		
			
				
					|  |  |             totalClient--; |  |  |             totalClient--; | 
			
		
	
		
		
			
				
					|  |  |         }); |  |  |         }); | 
			
		
	
	
		
		
			
				
					|  | @ -600,6 +605,8 @@ async function afterLogin(socket, user) { | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     sendNotificationList(socket) |  |  |     sendNotificationList(socket) | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     socket.emit("autoLogin") | 
			
		
	
		
		
			
				
					|  |  | } |  |  | } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | async function getMonitorJSONList(userID) { |  |  | async function getMonitorJSONList(userID) { | 
			
		
	
	
		
		
			
				
					|  | 
 |