Signup: rename the UserQuerySerializer to Signup.
This commit is contained in:
parent
5b2040fda3
commit
40db4e14b0
@ -339,12 +339,6 @@ class UserSerializer(serializers.ModelSerializer):
|
|||||||
fields = (User.USERNAME_FIELD, User.EMAIL_FIELD, 'pubkey', 'encryptedSeckey')
|
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):
|
class UserInfoPubkeySerializer(serializers.ModelSerializer):
|
||||||
pubkey = BinaryBase64Field()
|
pubkey = BinaryBase64Field()
|
||||||
|
|
||||||
@ -353,8 +347,14 @@ class UserInfoPubkeySerializer(serializers.ModelSerializer):
|
|||||||
fields = ('pubkey', )
|
fields = ('pubkey', )
|
||||||
|
|
||||||
|
|
||||||
|
class UserSignupSerializer(serializers.ModelSerializer):
|
||||||
|
class Meta:
|
||||||
|
model = User
|
||||||
|
fields = (User.USERNAME_FIELD, User.EMAIL_FIELD)
|
||||||
|
|
||||||
|
|
||||||
class AuthenticationSignupSerializer(serializers.Serializer):
|
class AuthenticationSignupSerializer(serializers.Serializer):
|
||||||
user = UserQuerySerializer(many=False)
|
user = UserSignupSerializer(many=False)
|
||||||
salt = BinaryBase64Field()
|
salt = BinaryBase64Field()
|
||||||
loginPubkey = BinaryBase64Field()
|
loginPubkey = BinaryBase64Field()
|
||||||
pubkey = BinaryBase64Field()
|
pubkey = BinaryBase64Field()
|
||||||
|
Loading…
Reference in New Issue
Block a user