mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: allow empty email in profile (#9012)
This commit is contained in:
parent
065724befb
commit
6f29d64325
@ -162,7 +162,7 @@ class SocialAccountSerializer(serializers.ModelSerializer):
|
|||||||
|
|
||||||
|
|
||||||
class ProfileSerializer(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)
|
password = ObfuscatedUserPasswordField(required=False, allow_null=False)
|
||||||
auth_token = serializers.SlugRelatedField(read_only=True, slug_field="key")
|
auth_token = serializers.SlugRelatedField(read_only=True, slug_field="key")
|
||||||
social_accounts = SocialAccountSerializer(
|
social_accounts = SocialAccountSerializer(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user