mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #31978 -- Added username hint to admin's password reset confirmation form.
This commit is contained in:
parent
6a881197e9
commit
daa26acc4e
2 changed files with 7 additions and 0 deletions
|
@ -52,6 +52,12 @@ class AuthTemplateTests(TestCase):
|
|||
response = client.get(url)
|
||||
self.assertContains(response, '<title>Enter new password</title>')
|
||||
self.assertContains(response, '<h1>Enter new password</h1>')
|
||||
# The username is added to the password reset confirmation form to help
|
||||
# browser's password managers.
|
||||
self.assertContains(
|
||||
response,
|
||||
'<input style="display: none;" autocomplete="username" value="jsmith">',
|
||||
)
|
||||
|
||||
def test_PasswordResetCompleteView(self):
|
||||
response = PasswordResetCompleteView.as_view()(self.request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue