From 73c91d1426ae9e29de48250cd95d040a946a8938 Mon Sep 17 00:00:00 2001 From: "DESKTOP-DPA61F8\\Benedek" Date: Thu, 29 Apr 2021 17:11:33 +0200 Subject: [PATCH] OK --- server/authentication.py | 2 +- server/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/authentication.py b/server/authentication.py index 22a69dd..6c68cc2 100644 --- a/server/authentication.py +++ b/server/authentication.py @@ -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 '' diff --git a/server/server.py b/server/server.py index ed34aa7..19f8b13 100644 --- a/server/server.py +++ b/server/server.py @@ -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()