mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
AuthTokenSerializer - properly render password field
This commit is contained in:
parent
22569e8202
commit
fde02ae6eb
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user