HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/django/core/checks/security/__pycache__/csrf.cpython-310.pyc
o

�a��@s�ddlZddlmZddlmZmZmZmZeddd�Zedd	d�Z	d
d�Z
eejdd
�dd��Zeejdd
�dd��Z
eej�dd��ZdS)�N)�settings�)�Error�Tags�Warning�registeraYou don't appear to be using Django's built-in cross-site request forgery protection via the middleware ('django.middleware.csrf.CsrfViewMiddleware' is not in your MIDDLEWARE). Enabling the middleware is the safest approach to ensure you don't leave any holes.z
security.W003��idz�You have 'django.middleware.csrf.CsrfViewMiddleware' in your MIDDLEWARE, but you have not set CSRF_COOKIE_SECURE to True. Using a secure-only CSRF cookie makes it more difficult for network traffic sniffers to steal the CSRF token.z
security.W016cCs
dtjvS)Nz)django.middleware.csrf.CsrfViewMiddleware)r�
MIDDLEWARE�rr�B/usr/lib/python3/dist-packages/django/core/checks/security/csrf.py�_csrf_middlewares
r
T)�deploycKst�}|rgStgS�N)r
�W003��app_configs�kwargs�passed_checkrrr�check_csrf_middlewaresrcKs"tjp	t�p	tj}|rgStgSr)r�CSRF_USE_SESSIONSr
�CSRF_COOKIE_SECURE�W016rrrr�check_csrf_cookie_secure#s��rc	Ks�ddlm}g}z|�}Wnty%dtj}|�t|dd��Y|Swz
t�|�j	ddd�W|St
yKdtj}|�t|dd��Y|Sw)	Nr)�_get_failure_viewz1The CSRF failure view '%s' could not be imported.z
security.E102r)�reasonzIThe CSRF failure view '%s' does not take the correct number of arguments.z
security.E101)�django.middleware.csrfr�ImportErrorr�CSRF_FAILURE_VIEW�appendr�inspect�	signature�bind�	TypeError)rrr�errors�view�msgrrr�check_csrf_failure_view-s.
��
�����r')r �django.confr�rrrrrrr
�securityrrr'rrrr�<module>s$�	�