diff options
| author | Tom Christie | 2012-12-07 22:25:16 +0000 | 
|---|---|---|
| committer | Tom Christie | 2012-12-07 22:25:16 +0000 | 
| commit | c911d54ae3769243fe6c74c29b5d16c7ac6efa10 (patch) | |
| tree | e92c0590a839366bdc2c9fc59881cf92674ec171 /rest_framework/authtoken/serializers.py | |
| parent | 303bc7cf95033d2560668bf6f4d97f05f1268967 (diff) | |
| download | django-rest-framework-c911d54ae3769243fe6c74c29b5d16c7ac6efa10.tar.bz2 | |
Reverted #458
When incorrect parameters are supplied to the obtain auth token view
400 *is* the correct response.
Diffstat (limited to 'rest_framework/authtoken/serializers.py')
| -rw-r--r-- | rest_framework/authtoken/serializers.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/authtoken/serializers.py b/rest_framework/authtoken/serializers.py index a5ed6e6d..60a3740e 100644 --- a/rest_framework/authtoken/serializers.py +++ b/rest_framework/authtoken/serializers.py @@ -1,6 +1,7 @@  from django.contrib.auth import authenticate  from rest_framework import serializers +  class AuthTokenSerializer(serializers.Serializer):      username = serializers.CharField()      password = serializers.CharField() @@ -21,4 +22,3 @@ class AuthTokenSerializer(serializers.Serializer):                  raise serializers.ValidationError('Unable to login with provided credentials.')          else:              raise serializers.ValidationError('Must include "username" and "password"') - | 
