django/tests/auth_tests
Natalia 8c35a0a903 Fixed CVE-2024-45231 -- Avoided server error on password reset when email sending fails.
On successful submission of a password reset request, an email is sent
to the accounts known to the system. If sending this email fails (due to
email backend misconfiguration, service provider outage, network issues,
etc.), an attacker might exploit this by detecting which password reset
requests succeed and which ones generate a 500 error response.

Thanks to Thibaut Spriet for the report, and to Mariusz Felisiak, Adam
Johnson, and Sarah Boyce for the reviews.
2024-09-03 09:22:32 -03:00
..
fixtures Converted test fixtures to setUpTestData methods 2015-03-05 10:10:32 +11:00
models Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
templates Fixed spelling of "nonexistent". 2017-02-03 08:01:45 -05:00
__init__.py
backend_alias.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
client.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
common-passwords-custom.txt Fixed #16860 -- Added password validation to django.contrib.auth. 2015-06-07 19:31:20 +02:00
settings.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_admin_multidb.py Fixed #35520 -- Avoided opening transaction for read-only ModelAdmin requests. 2024-07-04 11:38:58 +02:00
test_auth_backends.py Used enterClassContext() where appropriate. 2024-01-04 05:55:29 +01:00
test_basic.py Fixed #34391 -- Added async-compatible interface to auth functions and related methods test clients. 2023-06-27 11:17:17 +02:00
test_checks.py Fixed #31405 -- Added LoginRequiredMiddleware. 2024-05-22 08:51:17 +02:00
test_context_processors.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_decorators.py Fixed #31405 -- Added LoginRequiredMiddleware. 2024-05-22 08:51:17 +02:00
test_forms.py Fixed CVE-2024-45231 -- Avoided server error on password reset when email sending fails. 2024-09-03 09:22:32 -03:00
test_handlers.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_hashers.py Added test for acheck_password() to ensure make_password is called for unusable passwords. 2024-08-08 12:53:36 -03:00
test_management.py Fixed #35569 -- Improved wording of invalid ForeignKey error message. 2024-07-04 11:35:03 +02:00
test_middleware.py Fixed #31405 -- Added LoginRequiredMiddleware. 2024-05-22 08:51:17 +02:00
test_migrations.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_mixins.py Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_models.py Refs #35402 -- Added tests for invalid usage of submodules in some settings. 2024-08-13 16:09:52 +02:00
test_remote_user.py Used enterClassContext() where appropriate. 2024-01-04 05:55:29 +01:00
test_signals.py Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
test_templates.py Refs #35706 -- Prefixed 'Error:' to titles of admin pages with form errors. 2024-09-02 15:19:33 +02:00
test_tokens.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_validators.py Refs #35402 -- Added tests for invalid usage of submodules in some settings. 2024-08-13 16:09:52 +02:00
test_views.py Fixed #31405 -- Added LoginRequiredMiddleware. 2024-05-22 08:51:17 +02:00
urls.py Fixed #31405 -- Added LoginRequiredMiddleware. 2024-05-22 08:51:17 +02:00
urls_admin.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
urls_custom_user_admin.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00