templates: state password reset email is always sent (#53597)
This commit is contained in:
parent
24d42824dd
commit
08ece07bb2
|
@ -12,7 +12,7 @@
|
|||
<p>
|
||||
<strong>
|
||||
{% blocktrans with email=request.session.reset_email %}
|
||||
If your email address exists in our database, an email has been sent to {{ email }}.
|
||||
An email has been sent to {{ email }}.
|
||||
{% endblocktrans %}
|
||||
</strong></p>
|
||||
<p><strong>
|
||||
|
|
|
@ -78,7 +78,7 @@ def test_can_reset_by_username(app, db, simple_user, settings, mailoutbox):
|
|||
resp.form.set('email_or_username', simple_user.username)
|
||||
resp = resp.form.submit().follow()
|
||||
|
||||
assert 'an email has been sent to %s' % simple_user.username in resp
|
||||
assert 'An email has been sent to %s' % simple_user.username in resp
|
||||
assert len(mailoutbox) == 1
|
||||
assert mailoutbox[0].to == [simple_user.email]
|
||||
|
||||
|
@ -97,7 +97,7 @@ def test_can_reset_by_username_with_email(app, db, simple_user, settings, mailou
|
|||
resp = app.get('/accounts/password/reset/')
|
||||
resp.form.set('email_or_username', simple_user.email)
|
||||
resp = resp.form.submit().follow()
|
||||
assert 'an email has been sent to %s' % simple_user.username in resp
|
||||
assert 'An email has been sent to %s' % simple_user.username in resp
|
||||
assert len(mailoutbox) == 1
|
||||
|
||||
|
||||
|
@ -106,7 +106,7 @@ def test_reset_by_email_no_account(app, db, mailoutbox):
|
|||
resp.form.set('email', 'john.doe@example.com')
|
||||
resp = resp.form.submit().follow()
|
||||
|
||||
assert 'an email has been sent to john.doe@example.com' in resp
|
||||
assert 'An email has been sent to john.doe@example.com' in resp
|
||||
assert len(mailoutbox) == 1
|
||||
assert 'no account was found' in mailoutbox[0].body
|
||||
|
||||
|
@ -117,7 +117,7 @@ def test_can_reset_by_username_no_account(app, db, settings, mailoutbox):
|
|||
resp = app.get('/accounts/password/reset/')
|
||||
resp.form.set('email_or_username', 'john.doe')
|
||||
resp = resp.form.submit().follow()
|
||||
assert 'an email has been sent to john.doe' in resp
|
||||
assert 'An email has been sent to john.doe' in resp
|
||||
assert len(mailoutbox) == 0
|
||||
|
||||
|
||||
|
@ -127,7 +127,7 @@ def test_can_reset_by_username_no_account_email(app, db, settings, mailoutbox):
|
|||
resp = app.get('/accounts/password/reset/')
|
||||
resp.form.set('email_or_username', 'john.doe@example.com')
|
||||
resp = resp.form.submit().follow()
|
||||
assert 'an email has been sent to john.doe' in resp
|
||||
assert 'An email has been sent to john.doe' in resp
|
||||
assert len(mailoutbox) == 1
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue