Commit fde02ae6 by mdoglio

AuthTokenSerializer - properly render password field

parent 22569e82
...@@ -6,7 +6,7 @@ from rest_framework import exceptions, serializers ...@@ -6,7 +6,7 @@ from rest_framework import exceptions, serializers
class AuthTokenSerializer(serializers.Serializer): class AuthTokenSerializer(serializers.Serializer):
username = serializers.CharField() username = serializers.CharField()
password = serializers.CharField() password = serializers.CharField(style={'input_type': 'password'})
def validate(self, attrs): def validate(self, attrs):
username = attrs.get('username') username = attrs.get('username')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment