1
0
mirror of https://github.com/etesync/server synced 2024-12-29 02:38:07 +00:00

Signup: fix bug making signup not to work.

This commit is contained in:
Tom Hacohen 2020-05-26 13:17:35 +03:00
parent a965a76c36
commit 2412c295de

View File

@ -357,7 +357,7 @@ class AuthenticationSignupSerializer(serializers.Serializer):
pubkey = validated_data.pop('pubkey')
with transaction.atomic():
instance = User.objects.get_or_create(**user_data)
instance, _ = User.objects.get_or_create(**user_data)
if hasattr(instance, 'userinfo'):
raise serializers.ValidationError('User already exists')