From 6f29d6432559e282fe1b067c246855e31ec81135 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 3 Feb 2025 11:59:45 -0800 Subject: [PATCH] Fix: allow empty email in profile (#9012) --- src/paperless/serialisers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/serialisers.py b/src/paperless/serialisers.py index fb1f511f7..cd9325c09 100644 --- a/src/paperless/serialisers.py +++ b/src/paperless/serialisers.py @@ -162,7 +162,7 @@ class SocialAccountSerializer(serializers.ModelSerializer): class ProfileSerializer(serializers.ModelSerializer): - email = serializers.EmailField(allow_null=False) + email = serializers.EmailField(allow_blank=True, required=False) password = ObfuscatedUserPasswordField(required=False, allow_null=False) auth_token = serializers.SlugRelatedField(read_only=True, slug_field="key") social_accounts = SocialAccountSerializer(