kopia lustrzana https://github.com/wagtail/wagtail
better label on contrib PasswordResetForm to save duplicating with needless instruction
rodzic
b0699350a8
commit
5e381bf819
|
@ -1,3 +1,4 @@
|
|||
from django.utils.translation import ugettext, ugettext_lazy as _
|
||||
from django import forms
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.contrib.auth.forms import AuthenticationForm, PasswordResetForm
|
||||
|
@ -41,6 +42,8 @@ class LoginForm(AuthenticationForm):
|
|||
|
||||
|
||||
class PasswordResetForm(PasswordResetForm):
|
||||
email = forms.EmailField(label=_("Enter your email address to reset your password"), max_length=254)
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super(PasswordResetForm, self).clean()
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
<form method="post" novalidate>
|
||||
{% csrf_token %}
|
||||
<h1>Reset your password</h1>
|
||||
<p>Enter your email address in the box below</p>
|
||||
|
||||
<ul class="fields">
|
||||
<li>
|
||||
|
|
Ładowanie…
Reference in New Issue