Skip to content

Commit

Permalink
Clear the logs message on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
tahierhussain committed Jan 24, 2025
1 parent 0266676 commit 7666cb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/account_v2/authentication_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from django.db.utils import IntegrityError
from django.middleware import csrf
from django.shortcuts import redirect
from logs_helper.log_service import LogService
from rest_framework import status
from rest_framework.request import Request
from rest_framework.response import Response
Expand Down Expand Up @@ -268,6 +269,8 @@ def make_user_organization_display_name(self, user_name: str) -> str:
return self.auth_service.make_user_organization_display_name(user_name)

def user_logout(self, request: Request) -> Response:
session_id: str = UserSessionUtils.get_session_id(request=request)
LogService.remove_logs_on_logout(session_id=session_id)
response = self.auth_service.user_logout(request=request)
organization_id = UserSessionUtils.get_organization_id(request)
user_id = UserSessionUtils.get_user_id(request)
Expand Down

0 comments on commit 7666cb6

Please sign in to comment.