OK
This commit is contained in:
parent
fd4434f504
commit
73c91d1426
@ -51,7 +51,7 @@ class Authetication:
|
||||
b64pwd = b64encode(SHA256.new(password.encode('utf-8')).digest())
|
||||
bcrypt_check(b64pwd, user['password'].encode('utf-8'))
|
||||
auth_logger.debug("User logged in: " + username)
|
||||
return user['homeDir']
|
||||
return self.HOME_DIRECTORY_LOCATION + os.path.sep + user['homeDir']
|
||||
except ValueError:
|
||||
auth_logger.debug("User NOT logged in: " + username)
|
||||
return ''
|
||||
|
@ -22,7 +22,7 @@ class Server:
|
||||
|
||||
def login(self, homeDir: str) -> None:
|
||||
self.isAuthenticated = True
|
||||
self.executor = Executor(homeDir + os.path.seb)
|
||||
self.executor = Executor(homeDir + os.path.sep)
|
||||
|
||||
def logout(self) -> None:
|
||||
self.networkInstance.logout()
|
||||
|
Loading…
Reference in New Issue
Block a user