Code

Ticket #19368: 19368.patch

File 19368.patch, 1.4 KB (added by aaugustin, 19 months ago)
  • django/contrib/admin/forms.py

    diff --git a/django/contrib/admin/forms.py b/django/contrib/admin/forms.py
    index f1e7076..f0fa408 100644
    a b from django.contrib.auth import authenticate 
    66from django.contrib.auth.forms import AuthenticationForm 
    77from django.utils.translation import ugettext_lazy 
    88 
    9 ERROR_MESSAGE = ugettext_lazy("Please enter the correct username and password " 
    10         "for a staff account. Note that both fields are case-sensitive.") 
     9ERROR_MESSAGE = ugettext_lazy("Please enter correct credentials for a staff " 
     10        "account. Note that both fields are case-sensitive.") 
    1111 
    1212 
    1313class AdminAuthenticationForm(AuthenticationForm): 
  • django/contrib/auth/forms.py

    diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py
    index b44bc8b..7ef73c3 100644
    a b class AuthenticationForm(forms.Form): 
    148148    password = forms.CharField(label=_("Password"), widget=forms.PasswordInput) 
    149149 
    150150    error_messages = { 
    151         'invalid_login': _("Please enter a correct username and password. " 
     151        'invalid_login': _("Please enter correct credentials. " 
    152152                           "Note that both fields are case-sensitive."), 
    153153        'no_cookies': _("Your Web browser doesn't appear to have cookies " 
    154154                        "enabled. Cookies are required for logging in."),