Fixed #31291 -- Renamed salt to mask for CSRF tokens.

This commit is contained in:
Ram Rachum 2020-02-25 15:16:19 +02:00 committed by GitHub
parent 271fdab8b7
commit 5b09354954
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 26 deletions

View file

@ -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