This commit is contained in:
parent
15bd2b13ca
commit
c5d89d8b13
@ -13,7 +13,7 @@ class Server:
|
|||||||
self.availableServer = availableServer
|
self.availableServer = availableServer
|
||||||
self.executor = Executor(homeDirectory)
|
self.executor = Executor(homeDirectory)
|
||||||
self.auth=Authetication()
|
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:
|
def login(self, username: str, password: str) -> bool:
|
||||||
self.isAuthenticated = True
|
self.isAuthenticated = True
|
||||||
@ -89,3 +89,9 @@ class Server:
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
return "ERROR"
|
return "ERROR"
|
||||||
|
|
||||||
|
def startServer(self):
|
||||||
|
while (True):
|
||||||
|
self.networkInstance.recieveMessage()
|
||||||
|
|
||||||
|
startServer()
|
||||||
|
Loading…
Reference in New Issue
Block a user