From daa26acc4e7f134e064c5a6abe4d335f6fa8b249 Mon Sep 17 00:00:00 2001 From: Collin Anderson Date: Wed, 19 Aug 2020 13:54:30 -0400 Subject: Fixed #31978 -- Added username hint to admin's password reset confirmation form. --- tests/auth_tests/test_templates.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/auth_tests/test_templates.py') diff --git a/tests/auth_tests/test_templates.py b/tests/auth_tests/test_templates.py index ec1a4e5b75..9651bf585d 100644 --- a/tests/auth_tests/test_templates.py +++ b/tests/auth_tests/test_templates.py @@ -52,6 +52,12 @@ class AuthTemplateTests(TestCase): response = client.get(url) self.assertContains(response, 'Enter new password') self.assertContains(response, '

Enter new password

') + # The username is added to the password reset confirmation form to help + # browser's password managers. + self.assertContains( + response, + '', + ) def test_PasswordResetCompleteView(self): response = PasswordResetCompleteView.as_view()(self.request) -- cgit v1.3