diff options
| author | Camilo Nova <camilo.nova@gmail.com> | 2017-03-07 19:52:26 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-03-07 19:52:26 -0500 |
| commit | 5db465d5a6c389b8f9c6e21f7233be9387dc069d (patch) | |
| tree | c4bad7cdac2348067445553cb206f432f38a64b0 /tests/auth_tests/urls.py | |
| parent | 72ff9d53e66d6b59ae5d8a1b830f5fc798eb75d0 (diff) | |
Fixed #27891 -- Added PasswordResetConfirmView.post_reset_login_backend.
Diffstat (limited to 'tests/auth_tests/urls.py')
| -rw-r--r-- | tests/auth_tests/urls.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auth_tests/urls.py b/tests/auth_tests/urls.py index facfe4623f..19538a5912 100644 --- a/tests/auth_tests/urls.py +++ b/tests/auth_tests/urls.py @@ -90,6 +90,13 @@ urlpatterns = auth_urlpatterns + [ views.PasswordResetConfirmView.as_view(success_url=reverse_lazy('password_reset'))), url(r'^reset/post_reset_login/{}/$'.format(uid_token), views.PasswordResetConfirmView.as_view(post_reset_login=True)), + url( + r'^reset/post_reset_login_custom_backend/{}/$'.format(uid_token), + views.PasswordResetConfirmView.as_view( + post_reset_login=True, + post_reset_login_backend='django.contrib.auth.backends.AllowAllUsersModelBackend', + ), + ), url(r'^password_change/custom/$', views.PasswordChangeView.as_view(success_url='/custom/')), url(r'^password_change/custom/named/$', |
