django/tests/auth_tests
Natalia 0ebed5fa95 Fixed #35678 -- Removed "usable_password" field from BaseUserCreationForm.
Refs #34429: Following the implementation allowing the setting of
unusable passwords via the admin site, the `BaseUserCreationForm` and
`UserCreationForm` were extended to include a new field for choosing
whether password-based authentication for the new user should be enabled
or disabled at creation time.
Given that these forms are designed to be extended when implementing
custom user models, this branch ensures that this new field is moved to
a new, admin-dedicated, user creation form `AdminUserCreationForm`.

Regression in e626716c28.

Thanks Simon Willison for the report, Fabian Braun and Sarah Boyce for
the review.
2024-08-19 12:39:57 -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 #35678 -- Removed "usable_password" field from BaseUserCreationForm. 2024-08-19 12:39:57 -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 #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01: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