summaryrefslogtreecommitdiff
path: root/tests/auth_tests/urls.py
diff options
context:
space:
mode:
authorRob <tienrobertnguyenn@gmail.com>2019-05-23 22:18:49 +1000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-05-24 08:40:25 +0200
commit58df8aa40fe88f753ba79e091a52f236246260b3 (patch)
treedf59e1974eb9149b98ebe8aacefb403e31f32eb3 /tests/auth_tests/urls.py
parent8000767769ac37ec7f73eb9fcc4b3fc7399a5808 (diff)
Fixed #28780 -- Allowed specyfing a token parameter displayed in password reset URLs.
Co-authored-by: Tim Givois <tim.givois.mendez@gmail.com>
Diffstat (limited to 'tests/auth_tests/urls.py')
-rw-r--r--tests/auth_tests/urls.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auth_tests/urls.py b/tests/auth_tests/urls.py
index 142a2b49c2..f3cfa9f982 100644
--- a/tests/auth_tests/urls.py
+++ b/tests/auth_tests/urls.py
@@ -112,6 +112,10 @@ urlpatterns = auth_urlpatterns + [
views.PasswordResetConfirmView.as_view(success_url=reverse_lazy('password_reset')),
),
re_path(
+ '^reset/custom/token/{}/$'.format(uid_token),
+ views.PasswordResetConfirmView.as_view(reset_url_token='set-passwordcustom'),
+ ),
+ re_path(
'^reset/post_reset_login/{}/$'.format(uid_token),
views.PasswordResetConfirmView.as_view(post_reset_login=True),
),