• Jay Cox's avatar
    Fixed #24696 -- Made CSRF_COOKIE computation lazy. · eef95ea9
    Jay Cox yazdı
    Only compute the CSRF_COOKIE when it is actually used. This is a
    significant speedup for clients not using cookies.
    
    Changed result of the “test_token_node_no_csrf_cookie” test:  It gets
    a valid CSRF token now which seems like the correct behavior.
    
    Changed auth_tests.test_views.LoginTest.test_login_csrf_rotate to
    use get_token() to trigger CSRF cookie inclusion instead of changing
    request.META["CSRF_COOKIE_USED"] directly.
    eef95ea9
Adı
Son kayıt (commit)
Son güncelleme
..
fixtures Loading commit data...
models Loading commit data...
templates Loading commit data...
__init__.py Loading commit data...
backend_alias.py Loading commit data...
settings.py Loading commit data...
test_auth_backends.py Loading commit data...
test_basic.py Loading commit data...
test_context_processors.py Loading commit data...
test_decorators.py Loading commit data...
test_forms.py Loading commit data...
test_handlers.py Loading commit data...
test_hashers.py Loading commit data...
test_management.py Loading commit data...
test_middleware.py Loading commit data...
test_models.py Loading commit data...
test_remote_user.py Loading commit data...
test_signals.py Loading commit data...
test_templates.py Loading commit data...
test_tokens.py Loading commit data...
test_views.py Loading commit data...
urls.py Loading commit data...
urls_admin.py Loading commit data...
urls_custom_user_admin.py Loading commit data...