django1/django/contrib/auth
Markus Holtermann e5cb4e1411 Fixed #24914 -- Added authentication mixins for CBVs
Added the mixins LoginRequiredMixin, PermissionRequiredMixin and
UserPassesTestMixin to contrib.auth as counterparts to the respective
view decorators.

The authentication mixins UserPassesTestMixin, LoginRequiredMixin and
PermissionRequiredMixin have been inspired by django-braces
<https://github.com/brack3t/django-braces/>

Thanks Raphael Michel for the initial patch, tests and docs on the PR
and Ana Balica, Kenneth Love, Marc Tamlyn, and Tim Graham for the
review.
2015-06-17 23:19:10 +02:00
..
handlers Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
locale Updated translations from Transifex 2015-04-30 14:29:08 +02:00
management Fixed #24910 -- Added createsuperuser support for non-unique USERNAME_FIELDs 2015-06-06 09:33:02 -04:00
migrations Added contrib.auth migration for refs #13147. 2015-05-28 15:22:22 -04:00
templates/registration Fixed #12202 -- Removed hardcoded password reset subject and added a subject_template_name parameter to the password_reset view. Thanks, Ramiro Morales, Claude Paroz and agabel. 2011-06-19 11:24:39 +00:00
tests Fixed #22993 -- Deprecated skipIfCustomUser decorator 2015-04-07 09:45:32 -04:00
__init__.py Fixed #24161 -- Stored the user primary key as a serialized value in the session. 2015-02-12 07:38:16 -05:00
admin.py Renamed Field.rel attribute to remote_field 2015-03-25 08:16:12 -04:00
apps.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
backends.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
base_user.py Fixed #24564 -- Moved AbstractBaseUser and BaseUserManager so they can be used without auth in INSTALLED_APPS 2015-05-05 12:03:48 -04:00
checks.py Fixed #24149 -- Normalized tuple settings to lists. 2015-02-03 14:59:45 -05:00
common-passwords.txt.gz Fixed #16860 -- Added password validation to django.contrib.auth. 2015-06-07 19:31:20 +02:00
context_processors.py Started attackign the next flake8 violation 2013-10-31 08:42:28 -07:00
decorators.py Fixed #24929 -- Allowed permission_required decorator to take any iterable 2015-06-08 13:44:39 -04:00
forms.py Fixed #16860 -- Added password validation to django.contrib.auth. 2015-06-07 19:31:20 +02:00
hashers.py Fixed #24115 -- Allowed bcrypt hashers to upgrade passwords on rounds change. 2015-03-30 18:52:59 -04:00
middleware.py Fixed #23939 -- Moved session verification out of SessionAuthenticationMiddleware. 2014-12-03 13:11:47 -05:00
mixins.py Fixed #24914 -- Added authentication mixins for CBVs 2015-06-17 23:19:10 +02:00
models.py Corrected to not erroneously mention email as being required. 2015-06-15 14:58:48 +02:00
password_validation.py Refs #16860 -- Fixed a resource and deprecation warning in password validation. 2015-06-16 11:02:27 -04:00
signals.py Fixed #18616 -- added user_login_fail signal to contrib.auth 2012-09-30 22:34:50 -07:00
tokens.py Refactored PasswordResetTokenGenerator to be a bit more extensible. 2015-04-20 14:27:12 -04:00
urls.py Fixed #22218 -- Deprecated django.conf.urls.patterns. 2014-04-03 07:28:10 -04:00
views.py Fixed #24315 -- Fixed auth.views.password_reset_confirm() with a UUID user. 2015-02-13 09:56:31 -05:00