From fde02ae6ebfe3414e3f3f305c10f28a7f65ebd3e Mon Sep 17 00:00:00 2001 From: mdoglio Date: Sun, 22 Mar 2015 11:57:49 +0000 Subject: [PATCH] AuthTokenSerializer - properly render password field --- rest_framework/authtoken/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/authtoken/serializers.py b/rest_framework/authtoken/serializers.py index 37ade255d..597aeed22 100644 --- a/rest_framework/authtoken/serializers.py +++ b/rest_framework/authtoken/serializers.py @@ -6,7 +6,7 @@ from rest_framework import exceptions, serializers class AuthTokenSerializer(serializers.Serializer): username = serializers.CharField() - password = serializers.CharField() + password = serializers.CharField(style={'input_type': 'password'}) def validate(self, attrs): username = attrs.get('username')