mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-17 03:51:03 +03:00
Merge pull request #2741 from maurodoglio/hide-authtoken-field
AuthTokenSerializer - properly render password field
This commit is contained in:
commit
c9618cc0f3
|
@ -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