This commit is contained in:
parent
75f6e77668
commit
15bd2b13ca
@ -12,12 +12,12 @@ class Server:
|
||||
self.sessionTimeout = sessionTimeout
|
||||
self.availableServer = availableServer
|
||||
self.executor = Executor(homeDirectory)
|
||||
self.auth=Authetication()
|
||||
self.networkInstance = NetWrapper(_,_,self)
|
||||
|
||||
def login(self, username: str, password: str) -> bool:
|
||||
auth = Authetication()
|
||||
self.isAuthenticated = True
|
||||
home_directory = auth.login(username, password)
|
||||
home_directory = self.auth.login(username, password)
|
||||
self.executor.baseDir=Executor(home_directory)
|
||||
if not home_directory:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user