things
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2021-04-25 17:20:19 +02:00
parent 75f6e77668
commit 15bd2b13ca
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -12,12 +12,12 @@ class Server:
self.sessionTimeout = sessionTimeout self.sessionTimeout = sessionTimeout
self.availableServer = availableServer self.availableServer = availableServer
self.executor = Executor(homeDirectory) self.executor = Executor(homeDirectory)
self.auth=Authetication()
self.networkInstance = NetWrapper(_,_,self) self.networkInstance = NetWrapper(_,_,self)
def login(self, username: str, password: str) -> bool: def login(self, username: str, password: str) -> bool:
auth = Authetication()
self.isAuthenticated = True self.isAuthenticated = True
home_directory = auth.login(username, password) home_directory = self.auth.login(username, password)
self.executor.baseDir=Executor(home_directory) self.executor.baseDir=Executor(home_directory)
if not home_directory: if not home_directory:
return False return False