This commit is contained in:
		@@ -13,7 +13,7 @@ class Server:
 | 
			
		||||
        self.availableServer = availableServer
 | 
			
		||||
        self.executor = Executor(homeDirectory)
 | 
			
		||||
        self.auth=Authetication()
 | 
			
		||||
        self.networkInstance = NetWrapper(_,_,self)
 | 
			
		||||
        self.networkInstance = NetWrapper(self.auth.loadUserPublicKeys(),self.auth.loadServerPrivateKey(),self)
 | 
			
		||||
 | 
			
		||||
    def login(self, username: str, password: str) -> bool:
 | 
			
		||||
        self.isAuthenticated = True
 | 
			
		||||
@@ -89,3 +89,9 @@ class Server:
 | 
			
		||||
                pass
 | 
			
		||||
        else:
 | 
			
		||||
            return "ERROR"
 | 
			
		||||
 | 
			
		||||
    def startServer(self):
 | 
			
		||||
        while (True):
 | 
			
		||||
            self.networkInstance.recieveMessage()
 | 
			
		||||
 | 
			
		||||
    startServer()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user