diff --git a/Storage_UserAdministration/Controllers/AuthenticationController.py b/Storage_UserAdministration/Controllers/AuthenticationController.py index 67619776..2607ad12 100644 --- a/Storage_UserAdministration/Controllers/AuthenticationController.py +++ b/Storage_UserAdministration/Controllers/AuthenticationController.py @@ -19,15 +19,15 @@ def login(self, username, password): print("Invalid username or password.") raise ValueError("Invalid username or password.") - def logout(self, session_id: str): + def logout(self, username: str): try: - self.auth_service.logout(session_id) + self.auth_service.logout(username) print("User logged out successfully.") except KeyError: raise ValueError("Invalid session ID.") - def check_authentication(self, session_id): - if self.auth_service.is_authenticated(session_id): + def check_authentication(self, username): + if self.auth_service.is_authenticated(username): print("User is authenticated.") else: print("User is not authenticated.")