perf: Email service authentication username is optional

pull/13815/head
halo 2024-07-25 16:58:03 +08:00 committed by Bryan
parent 1816d52d21
commit a955fcd682
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class EmailSettingSerializer(serializers.Serializer):
)
EMAIL_HOST = serializers.CharField(max_length=1024, required=True, label=_("Host"))
EMAIL_PORT = serializers.CharField(max_length=5, required=True, label=_("Port"))
EMAIL_HOST_USER = serializers.CharField(max_length=128, required=True, label=_("Account"))
EMAIL_HOST_USER = serializers.CharField(max_length=128, allow_blank=True, required=False, label=_("Account"))
EMAIL_HOST_PASSWORD = EncryptedField(
max_length=1024, required=False, label=_("Password"),
help_text=_("Tips: Some provider use token except password")