We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf33ff commit c22b777Copy full SHA for c22b777
rest_auth/serializers.py
@@ -15,8 +15,8 @@
15
16
17
class LoginSerializer(serializers.Serializer):
18
- username = serializers.CharField(required=False)
19
- email = serializers.EmailField(required=False)
+ username = serializers.CharField(required=False, allow_blank=True)
+ email = serializers.EmailField(required=False, allow_blank=True)
20
password = serializers.CharField(style={'input_type': 'password'})
21
22
def validate(self, attrs):
0 commit comments