From f4bafc026c78fe3e00e072f0c06062c115b51bf4 Mon Sep 17 00:00:00 2001
From: Reinder Kraaij <kraaij@astron.nl>
Date: Tue, 30 Jan 2024 21:31:29 +0100
Subject: [PATCH] use GET for  query_params and have code the same as Release
 100

---
 SAS/TMSS/backend/src/tmss/tmssapp/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/views.py b/SAS/TMSS/backend/src/tmss/tmssapp/views.py
index 58d7168d1b4..2f8f5f30f01 100644
--- a/SAS/TMSS/backend/src/tmss/tmssapp/views.py
+++ b/SAS/TMSS/backend/src/tmss/tmssapp/views.py
@@ -67,10 +67,10 @@ def revoke_token_deauth(request, *args, **kwargs):
     invalidate_token.delete()
     return HttpResponse(status=204)
 
-@api_view(['GET'])
+
 def authentication_state(request):
     if not request.user.is_authenticated:
-        username = request.query_params.get('username', None)
+        username = request.GET.get('username', None)
         if username:
             # Check websocket token against known token for given username, to hint to the frontend that the user has
             # an active session. Proposed solution from TMSS-2904.
-- 
GitLab