Merge branch 'main' into narl.io

This commit is contained in:
nvrl committed 2026-02-18 03:11:42 +01:00
commit b51e7dfb3d
10 files changed
+419 -85

No files matched your search

+2 -3
View File
@@ -11,8 +11,7 @@ class InsecureEmailBackend(EmailBackend):
@property
def ssl_context(self):
if getattr(settings, 'EMAIL_SKIP_CERT_VERIFICATION', False):
context = ssl.create_default_context()
context.check_hostname = False
context.verify_mode = ssl.CERT_NONE
# The most robust way to bypass verification for self-signed certs
context = ssl._create_unverified_context()
return context
return super().ssl_context