from django.shortcuts import render, redirect
from django.contrib.auth import views as auth_views

# Create your views here.
def index(request):
	pass

def login(request, **kwargs):
	if request.user.is_authenticated():
		return redirect('index')
	else:
		return auth_views.login(request)

@@ -90,16 +90,70 @@
 th_views
+%0Afrom django.views.decorators.http import require_POST
 %0A%0A# Crea
@@ -199,16 +199,30 @@
 %0A%09pass%0A%0A
+@require_POST%0A
 def logi

Modify login view to be a post endpoint