|
@@ -26,7 +26,7 @@ class AuthenticationForm(AuthAuthenticationForm):
|
|
|
Adds appropriate classes to authentication form
|
|
Adds appropriate classes to authentication form
|
|
|
"""
|
|
"""
|
|
|
username = CharField(label=_t("Username"), max_length=30, widget=TextInput(attrs={'maxlength': 30, 'placeholder': _t("Username")}))
|
|
username = CharField(label=_t("Username"), max_length=30, widget=TextInput(attrs={'maxlength': 30, 'placeholder': _t("Username")}))
|
|
|
- password = CharField(label=_t("Password"), widget=PasswordInput(attrs={'maxlength': 30, 'placeholder': _t("Password")}))
|
|
|
|
|
|
|
+ password = CharField(label=_t("Password"), widget=PasswordInput(attrs={'placeholder': _t("Password")}))
|
|
|
|
|
|
|
|
|
|
|
|
|
class UserCreationForm(AuthUserCreationForm):
|
|
class UserCreationForm(AuthUserCreationForm):
|
|
@@ -35,7 +35,7 @@ class UserCreationForm(AuthUserCreationForm):
|
|
|
password fields with the value of that password field
|
|
password fields with the value of that password field
|
|
|
Adds appropriate classes to authentication form.
|
|
Adds appropriate classes to authentication form.
|
|
|
"""
|
|
"""
|
|
|
- password = CharField(label=_t("Password"), widget=PasswordInput(attrs={'class': 'input-large', 'maxlength': 30}))
|
|
|
|
|
|
|
+ password = CharField(label=_t("Password"), widget=PasswordInput(attrs={'class': 'input-large'}))
|
|
|
|
|
|
|
|
def __init__(self, data=None, *args, **kwargs):
|
|
def __init__(self, data=None, *args, **kwargs):
|
|
|
if data and 'password' in data:
|
|
if data and 'password' in data:
|