From 736b7a5345cc3181feea5c1b646a501c6f889187 Mon Sep 17 00:00:00 2001 From: shana9317 <166340032+shana9317@users.noreply.github.com> Date: Tue, 3 Sep 2024 23:11:35 +0300 Subject: [PATCH] Update AuthenticationController.py --- .../Controllers/AuthenticationController.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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.")