diff --git a/rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po b/rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po index aa26c0c3..006937a2 100644 --- a/rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po +++ b/rest_framework_jwt/locale/en_US/LC_MESSAGES/django.po @@ -47,7 +47,7 @@ msgid "User account is disabled." msgstr "" #: serializers.py:76 -msgid "Unable to login with provided credentials." +msgid "Unable to log in with provided credentials." msgstr "" #: serializers.py:79 diff --git a/rest_framework_jwt/serializers.py b/rest_framework_jwt/serializers.py index 2674fcab..12b10a44 100644 --- a/rest_framework_jwt/serializers.py +++ b/rest_framework_jwt/serializers.py @@ -61,7 +61,7 @@ def validate(self, attrs): 'user': user } else: - msg = _('Unable to login with provided credentials.') + msg = _('Unable to log in with provided credentials.') raise serializers.ValidationError(msg) else: msg = _('Must include "{username_field}" and "password".') diff --git a/tests/test_serializers.py b/tests/test_serializers.py index f5231bee..2e6c7e53 100644 --- a/tests/test_serializers.py +++ b/tests/test_serializers.py @@ -64,7 +64,7 @@ def test_invalid_credentials(self): is_valid = serializer.is_valid() expected_error = { - 'non_field_errors': ['Unable to login with provided credentials.'] + 'non_field_errors': ['Unable to log in with provided credentials.'] } self.assertFalse(is_valid)