VIew view

This commit is contained in:
jmsgrogan 2024-02-22 19:00:27 +00:00
parent c4ed1e0792
commit 06f53e8304

View file

@ -59,7 +59,10 @@ def index(request):
return HttpResponse(soup.prettify())
def login_view(request):
token = request.POST["token"]
if request.method == "GET":
token = request.GET["token"]
else:
token = request.POST["token"]
user = authenticate(request, username="guest", password=token.lower())
if user is not None:
login(request, user)