chore: remove is_secure() check (#7575)

This commit is contained in:
Jennifer Richards 2024-06-21 11:33:00 -03:00 committed by GitHub
parent 66b3095878
commit c8471d47d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,9 +52,6 @@ def notify(request, org, notification):
password = request.POST.get("password") or request.GET.get("password")
if username != None and password != None:
if settings.SERVER_MODE == "production" and not request.is_secure():
permission_denied(request, "You must use HTTPS when sending username/password.")
if not user.is_authenticated:
try:
user = User.objects.get(username__iexact=username)