diff --git a/api/views/__pycache__/views.cpython-311.pyc b/api/views/__pycache__/views.cpython-311.pyc index bd0b3605..88d01d2d 100644 Binary files a/api/views/__pycache__/views.cpython-311.pyc and b/api/views/__pycache__/views.cpython-311.pyc differ diff --git a/api/views/views.py b/api/views/views.py index c8d8d6e5..84f46150 100644 --- a/api/views/views.py +++ b/api/views/views.py @@ -1,4 +1,4 @@ -from django.http import JsonResponse +from django.http import JsonResponse, HttpResponse from api.utils import get_graph_token from django.shortcuts import redirect @@ -9,9 +9,9 @@ def login_redirect(request): """ graph_token = get_graph_token() - #HttpResponse(f"Logged in as {request.user.first_name} {request.user.last_name}, with email: {request.user.username} \nWith token: {graph_token['access_token']}") + return HttpResponse(f"Logged in as {request.user.first_name} {request.user.last_name}, with email: {request.user.username} \nWith token: {graph_token['access_token']}") - return redirect("https://sel2-4.be") + return redirect("https://sel2-4.ugent.be") def microsoft_association(request): return JsonResponse({"associatedApplications": [{ "applicationId": "239ce609-e362-4cf6-919f-97e6935ef5f5" }]}) \ No newline at end of file