From 5b09354954348f1a56df32b2d7dbe074a23a4532 Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Tue, 25 Feb 2020 15:16:19 +0200 Subject: Fixed #31291 -- Renamed salt to mask for CSRF tokens. --- tests/csrf_tests/test_context_processor.py | 2 +- tests/csrf_tests/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/csrf_tests') diff --git a/tests/csrf_tests/test_context_processor.py b/tests/csrf_tests/test_context_processor.py index 62e4365cd8..62bde2d085 100644 --- a/tests/csrf_tests/test_context_processor.py +++ b/tests/csrf_tests/test_context_processor.py @@ -1,5 +1,5 @@ from django.http import HttpRequest -from django.middleware.csrf import _compare_salted_tokens as equivalent_tokens +from django.middleware.csrf import _compare_masked_tokens as equivalent_tokens from django.template.context_processors import csrf from django.test import SimpleTestCase diff --git a/tests/csrf_tests/tests.py b/tests/csrf_tests/tests.py index 0a55cc307e..63cbd08c94 100644 --- a/tests/csrf_tests/tests.py +++ b/tests/csrf_tests/tests.py @@ -7,7 +7,7 @@ from django.http import HttpRequest, HttpResponse from django.middleware.csrf import ( CSRF_SESSION_KEY, CSRF_TOKEN_LENGTH, REASON_BAD_TOKEN, REASON_NO_CSRF_COOKIE, CsrfViewMiddleware, - _compare_salted_tokens as equivalent_tokens, get_token, + _compare_masked_tokens as equivalent_tokens, get_token, ) from django.test import SimpleTestCase, override_settings from django.views.decorators.csrf import csrf_exempt, requires_csrf_token -- cgit v1.2.1