diff --git a/rest_auth/registration/serializers.py b/rest_auth/registration/serializers.py index 4799a3a..b5c43fa 100644 --- a/rest_auth/registration/serializers.py +++ b/rest_auth/registration/serializers.py @@ -123,8 +123,8 @@ class RegisterSerializer(serializers.Serializer): required=allauth_settings.USERNAME_REQUIRED ) email = serializers.EmailField(required=allauth_settings.EMAIL_REQUIRED) - password1 = serializers.CharField(required=True, write_only=True) - password2 = serializers.CharField(required=True, write_only=True) + password1 = serializers.CharField(write_only=True) + password2 = serializers.CharField(write_only=True) def validate_username(self, username): username = get_adapter().clean_username(username) diff --git a/rest_auth/social_serializers.py b/rest_auth/social_serializers.py index 479019e..fb1d3dc 100644 --- a/rest_auth/social_serializers.py +++ b/rest_auth/social_serializers.py @@ -10,8 +10,8 @@ if 'allauth.socialaccount' in settings.INSTALLED_APPS: class TwitterLoginSerializer(serializers.Serializer): - access_token = serializers.CharField(required=True) - token_secret = serializers.CharField(required=True) + access_token = serializers.CharField() + token_secret = serializers.CharField() def _get_request(self): request = self.context.get('request')