This commit is contained in:
2021-04-29 17:11:33 +02:00
parent fd4434f504
commit 73c91d1426
2 changed files with 2 additions and 2 deletions

View File

@@ -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 ''