From 582365967dfa63d871218241a421e17d8a712c5f Mon Sep 17 00:00:00 2001 From: KayneWang Date: Mon, 1 Jul 2019 11:31:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E9=85=8D=E7=BD=AEemail?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E4=B8=BA=E7=A9=BA=20(#2833)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [issue 2577](https://github.com/jumpserver/jumpserver/issues/2577) --- apps/settings/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/serializers.py b/apps/settings/serializers.py index e0fdb0383..d03129b05 100644 --- a/apps/settings/serializers.py +++ b/apps/settings/serializers.py @@ -5,7 +5,7 @@ class MailTestSerializer(serializers.Serializer): EMAIL_HOST = serializers.CharField(max_length=1024, required=True) EMAIL_PORT = serializers.IntegerField(default=25) EMAIL_HOST_USER = serializers.CharField(max_length=1024) - EMAIL_HOST_PASSWORD = serializers.CharField() + EMAIL_HOST_PASSWORD = serializers.CharField(required=False, allow_blank=True) EMAIL_FROM = serializers.CharField(required=False, allow_blank=True) EMAIL_USE_SSL = serializers.BooleanField(default=False) EMAIL_USE_TLS = serializers.BooleanField(default=False)