Skip to content

Commit

Permalink
Fixed small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ticoucke committed Mar 4, 2024
1 parent c3bf63d commit 6873a6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified api/views/__pycache__/views.cpython-311.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions api/views/views.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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" }]})

0 comments on commit 6873a6a

Please sign in to comment.