Compare commits

..

No commits in common. "4fae36ff79217fde0780f1ad20de54637b78184f" and "02ef40a303185cee7b78057433f23c95420002c7" have entirely different histories.

View File

@ -47,14 +47,11 @@ class Authetication:
try:
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']
except ValueError:
auth_logger.debug("User NOT logged in: " + username)
return ''
else:
auth_logger.error("User not found")
return ''
auth_logger.debug("User logged in: " + username)
return user['homeDir']
def checkUserExists(self, username: str) -> bool:
with open(self.CONFIG_FILE_LOCATION) as json_file: