Skip to content

Commit

Permalink
require auth for error test
Browse files Browse the repository at this point in the history
  • Loading branch information
tbock committed Sep 10, 2024
1 parent 3cc2943 commit a8ef9ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AGOLAccountRequestor/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import logging

from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.core.mail import send_mail
from django.template.loader import render_to_string
Expand Down Expand Up @@ -81,6 +83,7 @@ def email_field_coordinator_request(request):
return Response(False)


@login_required
def error_test(request):
raise Exception("this should log")

Expand Down

0 comments on commit a8ef9ae

Please sign in to comment.