Signup: rename the UserQuerySerializer to Signup.

This commit is contained in:
Tom Hacohen 2020-05-31 16:05:46 +03:00
parent 5b2040fda3
commit 40db4e14b0

View File

@ -339,12 +339,6 @@ class UserSerializer(serializers.ModelSerializer):
fields = (User.USERNAME_FIELD, User.EMAIL_FIELD, 'pubkey', 'encryptedSeckey')
class UserQuerySerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = (User.USERNAME_FIELD, User.EMAIL_FIELD)
class UserInfoPubkeySerializer(serializers.ModelSerializer):
pubkey = BinaryBase64Field()
@ -353,8 +347,14 @@ class UserInfoPubkeySerializer(serializers.ModelSerializer):
fields = ('pubkey', )
class UserSignupSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = (User.USERNAME_FIELD, User.EMAIL_FIELD)
class AuthenticationSignupSerializer(serializers.Serializer):
user = UserQuerySerializer(many=False)
user = UserSignupSerializer(many=False)
salt = BinaryBase64Field()
loginPubkey = BinaryBase64Field()
pubkey = BinaryBase64Field()